Problem/Motivation
We need to invalidate the menu cache when settings are changed. Menu blocks and/or the menu trees get cached by Core. Once we change the settings, these cache entries should be invalidated. Most likely it should be enough to invalidate some cache tag on successful submission of the module’s settings form.
Issue fork trailless_menu-3304958
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
sorabh.v6MR created for the issue https://git.drupalcode.org/project/trailless_menu/-/merge_requests/1
I tried for invalidateTags method but it was not having any effect therefore I had to use invalidateAll method.
Comment #4
dmitriy.trt commentedPlease see the code review.
Comment #6
dmitriy.trt commentedMerged. Thanks!