#111453Flush pages when the target of a record link changes
Description
Problem
A page rendering a record link (t3://record?identifier=…&uid=…) is not
flushed when the linked record is hidden, moved, deleted or translated. The
link keeps pointing to a record that can no longer be linked, or stays
unrendered after the record became visible, until the page cache expires.
Cause
DatabaseRecordLinkBuilder adds no cache tag for the linked record. Page
links do, with frontend.cache.autoTagging enabled: PageLinkBuilder::addPageCacheTag()
adds pages_<uid> with a lifetime from the start and end time of the target.
Suggested fix
Add<table>_<uid> in DatabaseRecordLinkBuilder under the same featureswitch as page links (
frontend.cache.autoTagging), after the table wasvalidated, with the lifetime of the record (start and end time). Add the tag
of the translation overlay as well, as
CacheFlusher flushes@
Reviews 1
History 04
-
Gerrit Code Review pushed patch set 1 for main to change 97674 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-15T10:40:51+00:00" > 11/15/26, 10:40 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97674 <span data-processor="relativetime" data-value="2026-11-15T11:01:53+00:00" > 11/15/26, 11:01 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 97674 <span data-processor="relativetime" data-value="2026-11-15T11:06:41+00:00" > 11/15/26, 11:06 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 97674 <span data-processor="relativetime" data-value="2026-11-19T11:46:38+00:00" > 11/19/26, 11:46 </span>