Bubble up cache contexts & tags from the rendered menu

Created on 13 March 2023, over 1 year ago

The cache contexts & tags from the rendered menu are lost after being rendered. Most menus are simple and this is not a problem. However, our site has a custom smartmenus-menu.html.twig file that uses twig_tweak to add a block to the smartmenu. And when this is done, the cache contexts & tags for this block are now lost. There is an easy fix to this. We need to merge the contexts & tags that are returned after the menu is rendered.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States douggreen Winchester, VA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024