Issue Bug Closed

#104318BackendUtility::getPageTSconfig returns wrong result

Friedemann Altrock 07/05/24, 22:22 updated 08/12/25, 14:35

Description

The new two-level cache introduced in #100701 maps the page UID to a cache hash, which is built only from these parts:

1. the site identifier
2. all `TSconfig` fields from the root line
3. all `tsconfig_includes` fields from the root line

Two pages in the same site, with the same includes and configuration, map to the same cache hash.
The cached result is the evaluated PageTS config array, which will be the same for both page UIDs –
*even if one of them has a condition that would change the TSconfig.*

Automatic reproduction: https://github.com/fwg/typo3-bugs/tree/forge/104318

Reviews 2