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 #1

Updated by Friedemann Altrock 5 months ago

  • Description updated (diff)
Actions #2

Updated by Friedemann Altrock 5 months ago

  • PHP Version changed from 8.1 to 8.2
Actions #3

Updated by Friedemann Altrock 5 months ago

  • Related to Bug #98614: Preview with previewPageId by conditions added
Actions #4

Updated by Friedemann Altrock 5 months ago

  • Related to Task #100701: Use less memory in BE::getPagesTSconfig() added
Actions #5

Updated by Friedemann Altrock 5 months ago

  • Description updated (diff)
Actions #6

Updated by Gerrit Code Review 5 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85139

Actions #7

Updated by Gerrit Code Review 5 months ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85139

Actions #8

Updated by Gerrit Code Review 4 months ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85139

Actions #9

Updated by Gerrit Code Review about 1 month ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85139

Actions

Also available in: Atom PDF