Review main Ready for review

98103[FEATURE] Allow static TypoScript parsing to be cached at build time

Benni Mack CR 0 V 0 Hard +621 −47 updated 11/27/26, 11:37

Commit message

The parsed TypoScript include tree is stored in the "typoscript" cache
as a whole: Each cached sys_template node contains full copies of all
static templates, extension statics and globals it includes, so the
same subtrees are stored once per template record.

Include nodes that only depend on files and configuration are now
stored in the code cache "core" on their own, using package dependent
identifiers: Static templates, ext_typoscript_* files, the default
TypoScript from globals, site constants and the site template. A
cached sys_template node only references them. If a referenced entry
is missing, the node is created again.

Since these entries do not need a database connection, a listener to
CacheWarmupEvent creates them for all static templates and sites when
the "system" caches are warmed up, so they can be created when an
instance is built.

The identifier of the site template now includes the site sets,
settings and TypoScript, since the "core" cache is not flushed when
the site configuration is saved.

Magic includes added by ExtensionManagementUtility::addTypoScript()
for extension statics are now also added when the extension static is
taken from cache.

Page TSconfig and user TSconfig are not split, since the PSR-14 event
ModifyLoadedPageTsConfigEvent can change TSconfig of packages and site
sets depending on the rootline.

This is the prework to turn the "typoscript" cache into a data cache.
Show more Show less

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/03/98103/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/03/98103/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Relation chain 2

  1. 84603[TASK] Change typoscript from code to a data cache Based on this change Rasmus Salling → main Normal +91 −94 CR 0 V 0 Merge conflict
  2. 98103 [FEATURE] Allow static TypoScript parsing to be cached at build time This change

Merge conflicts 5

Issues 2

Files 14

Review log 12

  1. Benni Mack uploaded patch set 1 11/27/26, 11:25

  2. core-ci voted on patch set 1 V +1 11/27/26, 11:37 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115717