Skip to content

Commit

Permalink
Merge pull request #335 from SU-SWS/pookmish-patch-1
Browse files Browse the repository at this point in the history
Don't cache if the first block doesnt live in the nav.
  • Loading branch information
sherakama authored Sep 20, 2019
2 parents ac6d830 + 698db75 commit c33b888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template.php
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,8 @@ function open_framework_is_in_nav_menu($element) {
return TRUE;
}

// This is not part of the main navigation region. Cache this too.
$static_menu_cache[$menu_name] = FALSE;
// This is not part of the main navigation region. But dont cache the result
// since another block with the same menu could follow this one.
return FALSE;
}

Expand Down

0 comments on commit c33b888

Please sign in to comment.