Project

General

Profile

Actions

Bug #89285

closed

TYPO3 regenerates cached page every page reload for specific TypoScript

Added by Sven Burkert over 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2019-09-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
caching, TypoScript, TS condition, multilanguage, alternative language
Complexity:
hard
Is Regression:
Sprint Focus:

Description

To reproduce this error, please do these steps:

1) Setup a new "Root Page" with this TypoScript:

TS Constants:

aaaa = 222222
[globalVar = GP:L = 2]
aaaa = 111111
[global]

TS Setup:

[globalVar = TSFE:id = {$aaaa}]

[global]

page = PAGE
page.1 = TEXT
page.1.value = {$aaaa}

page.2 = TEXT
page.2.value = cachetest

2) Create two new "Website Language" records
3) Create a new page and translate it into these two alternative languages
4) Flush all caches
5) Logout from TYPO3 BE
6) Open page in first language in your browser (e.g. domain.local/?id=1&L=1) => TYPO3 generates cache for this page
7) Reload this page => TYPO3 serves page from cache
8) Open page in second language in your browser (e.g. domain.local/?id=1&L=2) => TYPO3 generates cache for this page
9) Reload this page several times => TYPO3 generates the page cache every reload!!
10) Look in your database in table cf_cache_pages, there should be two entries. The first entry has ID 1, the second entry has an ID > 2 (this depends on how often you had reloaded the page with second language).

Error occures in TYPO3 8.7.27
Tested with Ubuntu / Vagrant Box / PHP 7.1 / MySQL 5.6
Tested with Windows 7 / MAMP / PHP 7.2 / MySQL 5.7


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #23736: Condition with globalVar TSFE does not care about page language overlayClosedBenni Mack2010-10-15

Actions
Related to TYPO3 Core - Feature #97816: New TypoScript parserClosed2022-06-27

Actions
Actions #1

Updated by Sven Burkert over 4 years ago

  • TYPO3 Version changed from 8 to 9

This error also occures in TYPO3 9.5.9!

Could someone please grant me rights to edit the issue description?

Actions #2

Updated by Christian Eßl over 4 years ago

  • Related to Bug #23736: Condition with globalVar TSFE does not care about page language overlay added
Actions #3

Updated by Christian Kuhn over 1 year ago

Actions #4

Updated by Christian Kuhn over 1 year ago

  • Status changed from New to Closed

The constant and condition to page cache logic got a major overhaul is v12. In case this issue still existed before v12, it has been resolved now.

Please re-open in case you think we missed something.

Actions #5

Updated by Sven Burkert over 1 year ago

Ok :) Reading this ticket again, 3 years later, I guess it's the missing cHash why domain.local/?id=1&L=2 isn't cached.

But on the other side, domain.local/?id=1&L=1 is cached...!?

Actions

Also available in: Atom PDF