#110663GreedyCacheBackend is too greedy
Description
The cache resolving with pointers in GreedyCacheBackend only works well in a situation where all records to be looked up are within the same pid.
However, “Relations” (in contrast to “Collections”) for select/group scenarios may reference records from different PIDs. In these cases, the getRowsFromCache() method will return wrong results for a case where lookups intersect on a single UID. Then the rows of only one PID are returned, and are missing the pointer results from records in a different PID.
This is problematic for an extension like Content-Blocks where plugins for “teaser lists” are created to point to different pages, and return wrong results.
See https://typo3.slack.com/archives/C8Z2UM50Q/p1788877540991639 for more discussion.
Two approaches so far:
- Restrict the special caching to “Collections” only. Make “Relations” not utilize this optimized caching
- Generally restrict the optimized caching to PIDs
Reviews 3
Related issues 2
History 38
-
Gerrit Code Review pushed patch set 2 for main to change 95730 status
AcceptedUnder Review <span data-processor="relativetime" data-value="2026-09-09T12:27:02+00:00" > 09/09/26, 12:27 </span> -
Gerrit Code Review pushed patch set 2 for main to change 95732 <span data-processor="relativetime" data-value="2026-09-09T12:27:10+00:00" > 09/09/26, 12:27 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 95730 <span data-processor="relativetime" data-value="2026-11-11T12:26:52+00:00" > 11/11/26, 12:26 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 95730 <span data-processor="relativetime" data-value="2026-11-11T13:11:58+00:00" > 11/11/26, 13:11 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 97543 <span data-processor="relativetime" data-value="2026-11-11T13:48:58+00:00" > 11/11/26, 13:48 </span>
-
Garvin Hicking commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-11-11T13:55:11+00:00" > 11/11/26, 13:55 </span> -
Georg Ringer changed Related to #110398 <span data-processor="relativetime" data-value="2026-11-11T21:16:49+00:00" > 11/11/26, 21:16 </span>
-
Georg Ringer changed Related to #109594 <span data-processor="relativetime" data-value="2026-11-11T21:19:43+00:00" > 11/11/26, 21:19 </span>
Applied in changeset commit:1e12da3e02fd4eb2c31c1180abddddeef72531e1.