Issue Bug Closed

#106707"Clear cache for this page" does not clear cache for included TypoScript using INCLUDE_TYPOSCRIPT syntax

Mathias Bolt Lesniak 05/15/25, 10:24 updated 08/12/25, 14:35

Description

Clicking the “Clear cache for this page” button for does not clear cache for included TypoScript using INCLUDE_TYPOSCRIPT syntax, neither for Constants nor Setup. This was originally reported here: https://talk.typo3.org/t/after-upgrade-from-11-to-12-clearing-a-page-cache-does-not-reload-included-constants-files/6273

This seems to be a regression. My tests have been in TYPO3 v12.4.29 and v13.4.8, where the bug appears. The reporter on talk.typo3.org has tested in TYPO3 v11, where the cache apparently clears properly. I have not tested in TYPO3 v11.

Steps to reproduce:

1. Create a file in fileadmin/xyz/constants.txt containing this line:

worksText = does work

2. Create a new site with a TypoScript template. (Tested with clear Constants and Setup, as well as Rootlevel checked.) Add TypoScript as follows:

Constants:

<INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/xyz/constants.txt">

Setup:

page = PAGE
page.10 = TEXT
page.10.value = {$worksText}

3. Save the TypoScript template and preview the page. (You may choose to clear the frontend cache using the drop-down menu, though this should already happen when you save the TypoScript file.)

4. Preview the page. It should show the text “does work”.

5. Change the text in fileadmin/xyz/constants.txt to:

worksText = does not work

6. Clear the cache using the “Clear cache for this page” (lightning icon) on the page where the TypoScript template resides.

7. Preview the page. It should still show the text “does work”. If the cache had been cleared, the page would have displayed “does not work”.

I have done further tests, and the issue seems to be strictly related to the use of the INCLUDE_TYPOSCRIPT syntax.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.