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.

Command icon 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

sorabh.v6 created an issue. See original summary.

sorabh.v6’s picture

Assigned: sorabh.v6 » Unassigned
Status: Active » Needs review

MR 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.

dmitriy.trt’s picture

Status: Needs review » Needs work

Please see the code review.

dmitriy.trt’s picture

Status: Needs work » Fixed

Merged. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.