Commit c0542917 authored by webchick's avatar webchick
Browse files

#687666 by tstoeckler, David_Rothstein: Fixed block static cache a bit too static.

parent c2e2974f
......@@ -242,6 +242,15 @@ function block_page_build(&$page) {
$page[$region] = $blocks;
// Once we've finished attaching all blocks to the page, clear the static
// cache to allow modules to alter the block list differently in different
// contexts. For example, any code that triggers hook_page_build() more
// than once in the same page request may need to alter the block list
// differently each time, so that only certain parts of the page are
// actually built. We do not clear the cache any earlier than this, though,
// because it is used each time block_get_blocks_by_region() gets called
// above.
else {
// Append region description if we are rendering the regions demo page.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment