Problem/Motivation
- Certain cache bins are using the
ChainedFastBackend, which isn't fully working with the current override of only "simple" cache backends. This concerns mainly the discovery cache bin, which we need to override to deal with asset_injector config for example. - The
config.storageservice needs to redirect all calls to the already implementedWseCacheBackendbecause there's notices like the one below otherwise if the core service gets called, as that service isn't aware of workspace spefific cache ids.

Steps to reproduce
- Enable wse_config and asset_injector
- Create a new workspace
- Switch to the new workspace
- Add a new CSS asset_injector config and click on "Save And Continue Editing"
- Make CSS changes inside the above created asset_injector config and click on "Save And Continue Editing"
- After repeating the step above a few times (amount of times differs), the changed asset injector's CSS won't get applied to the page anymore
Proposed resolution
- Override config.storage to redirect all calls to this class to WseCacheBackend.
- Override cache.backend.chainedfast and extend the ChainedFastBackend to disable caching in the fast backend inside workspaces.
| Comment | File | Size | Author |
|---|---|---|---|
| image (5).png | 1.07 MB | s_leu |
Issue fork wse-3275422
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
amateescu commentedMerged into 1.0.x, thanks!
Comment #5
amateescu commented