Issue Feature Under Review

#111637Allow static TypoScript parsing to be cached at build time

Benni Mack 11/27/26, 11:06 updated 11/27/26, 11:25

Description

The parsed TypoScript include tree is stored in the “typoscript” cache as a whole: Every cached sys_template node contains full copies of the static templates, ext_typoscript_* files and globals it includes. With many sites including the same static templates, the cache grows a lot (see #104038).

Parts of the include tree only depend on files and configuration, not on the database or the request:

  • static templates selected in sys_template.include_static_file
  • ext_typoscript_constants/setup.typoscript of extensions
  • $GLOBALS[‘TYPO3_CONF_VARS’][‘FE’][‘defaultTypoScript_*’]
  • TypoScript of site sets and config/sites/<identifier>/, including the constants created from site settings</identifier>

Those should be stored in the code cache “core” on their own, using package dependent identifiers, while the sys_template nodes in the “typoscript” cache only reference them. Since they do not need a database connection, they can be created by “typo3 cache:warmup —group system” when building an instance, e.g. for read-only container images.

This is prework to turn the “typoscript” cache into a pure data cache that can be shared between multiple instances (e.g. Redis), see https://review.typo3.org/c/Packages/TYPO3.CMS/+/84603.

Page TSconfig and user TSconfig are not split for now: their package and site set parts are collected from files as well, but ModifyLoadedPageTsConfigEvent can change them depending on the rootline, so they can not be treated as independent from the database.

Reviews 1

History 01

  1. Gerrit Code Review pushed patch set 1 for main to change 98103 status New Under Review 11/27/26, 11:25