Issue Bug Closed

#109711Unreliable asset caching in rolling-release deployments

Mathias Brodala 04/27/26, 07:51 updated 08/11/26, 08:46

Description

Given rolling-release deployments with multiple independent release directories and a symlink switch. The page output is cached with asset references of the current release.

However, switching to a new release does not affect the cached page output, instead a manual cache flush is necessary.

It would be useful if the page cache was invalidated automatically on release switch to ensure the page content is rendered and cached with the latest output including asset paths.

One solution would be to add the project path to the list of page cache identifier parameters.

Reviews 2

History 47

  1. Gerrit Code Review pushed patch set 1 for main to change 93843 status New Under Review 04/27/26, 07:57

  2. Garvin Hicking commented and changed category 04/27/26, 08:31

    I wonder, usually also for rolling releases it’s best practice to flush and warmup caches, wouldn’t that obsolete the need for internal cache identifiers containing (and reading) that?

  3. Mathias Brodala commented 04/27/26, 08:38

    Garvin Hicking wrote in #note-2:
    > I wonder, usually also for rolling releases it’s best practice to flush and warmup caches, wouldn’t that obsolete the need for internal cache identifiers containing (and reading) that?

    Yes, we also do this and always did. However, for this particular case we saw errors in the frontend which were caused by the page content referring to obsolete asset paths (Webpack assets but loaded via f:asset.css / f:asset:script). Only after adding the project path to the cache identifier, the issue was gone.

  4. Gerrit Code Review pushed patch set 2 for main to change 93843 04/27/26, 09:36

  5. Gerrit Code Review pushed patch set 1 for 14.3 to change 93916 05/02/26, 16:07

  6. Mathias Brodala commented and changed status Under Review Resolved done 0 % 100 % 05/02/26, 17:00

    Applied in changeset commit:57df1b21ce3254a5edd6710ed3bb65f226e569e3.

  7. Benni Mack changed status Resolved Closed 08/11/26, 08:46