Bug #99162
openEntire cache flushed if TypoScript template is modified and saved (in the database)
0%
Description
If a root or extension TypoScript template is modified and saved, the entire page cache is flushed. Apparently even pages in other site (in multi-site installation) and redirects cache is flushed. Even if just a constant is changed.
Affected versions¶
Not a new issue, was this way since v11 at least, reproducible in v13
Possible solutions¶
1. change the behaviour if possible (e.g. flush only cache entries affected by the change, e.g. on subpages)
2. Make it possible to override this behaviour
Usecases¶
We use a sitepackage to manage TypoScript, but sometimes specific changes need to be made for just one page, e.g. for powermail configuration. It is not possible to do this without flushing entire cache, which has a negative impact on performance
Updated by Georg Ringer over 1 year ago
as long as there is no plan how a site package needs to look like this can't be promoted.
IMO something like b13/bolt must be shipped with the core and then this is at least a starting point.
Updated by Sybille Peters over 1 year ago
as long as there is no plan how a site package needs to look like this can't be promoted.
IMO something like b13/bolt must be shipped with the core and then this is at least a starting point.
There is a sitepackage tutorial. This is also mentioned on the TypoScript docs page Add TypoScript in the backend, so if you go to the documentation, that what is in the sitepackage tutorial propagated as best practice:
It is best practice to use a Sitepackage extension to bundle various configuration in an extension. See TYPO3 Sitepackage Tutorial.
And a companion extension https://github.com/TYPO3-Documentation/TYPO3CMS-Tutorial-SitePackage-Code
I was not aware of b13/bolt
Anyhow, this can be done in several steps, e.g.
1. make information about cache flushing available
2. make decision which course to take (several possibilities between 2 extremes, one extreme would be dropping EXT:tstemplate entirely, the other are promoting one or the other).
3. etc.
Updated by Sybille Peters 9 months ago
- Tracker changed from Task to Bug
- Subject changed from Make information about flushing of entire page cache when editing TypoScript templates and recommendation to use sitepackage more prominent to Entire cache flushed if TypoScript template is modified and saved (in the database)
- Description updated (diff)
- Category changed from Documentation to Caching