Review main Ready for review

98015[BUGFIX] Resolve clear cache actions for the current backend user

Benni Mack CR 0 V 0 Normal +126 −57 updated 11/25/26, 12:51

Commit message

ClearCacheToolbarItem is a shared service, but it built its cache
actions in the constructor from the backend user active at that
moment. Every later user served by the same container got these
actions: an editor saw "Flush all caches" after an admin, an admin
lost it after an editor.

The actions are now resolved for the current backend user whenever
the toolbar item is asked for them, including the dispatch of
ModifyClearCacheActionsEvent.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/15/98015/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/15/98015/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Merge conflicts 1

Issues 1

Files 3

Review log 12

  1. Benni Mack uploaded patch set 1 11/25/26, 12:44

  2. core-ci voted on patch set 1 V +1 11/25/26, 12:51 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115438