Skip to content
Snippets Groups Projects
Unverified Commit 718f6c51 authored by Doug Green's avatar Doug Green Committed by Doug Green
Browse files

Issue #3201274 by douggreen: Cache tags are not set properly

parent 26db475b
Branches
Tags 8.x-1.3
No related merge requests found
......@@ -249,12 +249,14 @@ class SmartMenusBlock extends BlockBase implements ContainerFactoryPluginInterfa
],
'#menu_name' => $menu_name,
'#toggle' => $toggle,
'#cache' => [
'contexts' => ['url.path'],
],
];
$build['#menu_tree'] = $this->renderer->renderPlain($rendered_menu);
$build['#cache'] = [
'contexts' => ['url.path'],
'tags' => $tree['#cache']['tags'],
];
return $build;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment