Project

General

Profile

Actions

Bug #104318

open

BackendUtility::getPageTSconfig returns wrong result

Added by Friedemann Altrock 5 months ago. Updated about 1 month ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Backend API
Start date:
2024-07-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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


Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Bug #98614: Preview with previewPageId by conditionsNew2022-10-14

Actions
Related to TYPO3 Core - Task #100701: Use less memory in BE::getPagesTSconfig()Closed2023-04-21

Actions
Actions

Also available in: Atom PDF