Commit ea6051a4 authored by robertom's avatar robertom Committed by boshtian

Issue #2976587 by robertom, George Bills: Cache collision, block configuration not respected

parent 807502c0
......@@ -211,7 +211,12 @@ class Blocks extends ContextReactionPluginBase implements ContainerFactoryPlugin
'#block_plugin' => $block,
'#pre_render' => [[$this, 'preRenderBlock']],
'#cache' => [
'keys' => ['context_blocks_reaction', 'block', $block_placement_key],
'keys' => [
'context_blocks_reaction',
$configuration['context_id'],
'block',
$block_placement_key,
],
'tags' => $block->getCacheTags(),
'contexts' => $block->getCacheContexts(),
'max-age' => $block->getCacheMaxAge(),
......
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