Issue Bug Under Review

#111584ClearCacheToolbarItem keeps the cache actions of the first backend user

Benni Mack 11/25/26, 12:43 updated 11/25/26, 12:44

Description

ClearCacheToolbarItem is a shared service, but it builds its cache actions in the constructor from the backend user that is active at that moment (admin flag, options.clearCache TSconfig, ModifyClearCacheActionsEvent).

Every later user served by the same container gets these actions instead of their own:

  • an admin first: an editor with only options.clearCache.pages is offered “Flush all caches” as well
  • an editor first: an admin loses the dropdown with “Flush all caches”

This happens whenever one container serves several users, e.g. in long-running worker setups (FrankenPHP worker mode), or when BE_USER is switched within one process.

The cache actions should be resolved for the current backend user whenever the toolbar item is asked for them.

Reviews 1

History 01

  1. Gerrit Code Review pushed patch set 1 for main to change 98015 status New Under Review 11/25/26, 12:44