#109711Unreliable asset caching in rolling-release deployments
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
-
Gerrit Code Review pushed patch set 1 for main to change 93843 status
NewUnder Review <span data-processor="relativetime" data-value="2026-04-27T07:57:50+00:00" > 04/27/26, 07:57 </span> -
Garvin Hicking commented and changed category <span data-processor="relativetime" data-value="2026-04-27T08:31:55+00:00" > 04/27/26, 08:31 </span>
-
Mathias Brodala commented <span data-processor="relativetime" data-value="2026-04-27T08:38:20+00:00" > 04/27/26, 08:38 </span>
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. -
Gerrit Code Review pushed patch set 2 for main to change 93843 <span data-processor="relativetime" data-value="2026-04-27T09:36:09+00:00" > 04/27/26, 09:36 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 93916 <span data-processor="relativetime" data-value="2026-05-02T16:07:43+00:00" > 05/02/26, 16:07 </span>
-
Mathias Brodala commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-05-02T17:00:10+00:00" > 05/02/26, 17:00 </span>Applied in changeset commit:57df1b21ce3254a5edd6710ed3bb65f226e569e3.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2026-08-11T08:46:57+00:00" > 08/11/26, 08:46 </span>
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?