Review 12.4 Merged

79532[BUGFIX] Correct multi site FE TypoScript caches

Christian Kuhn CR +2 V +2 Easy +12 −2 updated 06/27/23, 08:28

Commit message

The v12 TypoScript parser has a nifty feature to
create the smallest possible amount of cache entries:

When two sys_template records have the same content,
when they're basically just different by their uid,
pid and maybe title, then they share the same
cache entry of their tokenized representation.

A sys_template row that has the "clear constants"
flag set, triggers inclusion of possible site
settings, which are available as constants.

When there are two different sys_template "entry"
records in a multi site instance, those sys_template
records are bound to different sites and should thus
load potentially different site settings. The
data fields of those two sys_template records may be
the same, but still need to trigger different cache
entries. Otherwise, the site settings from the request
that triggered creation of the cache entry swaps into
the other one.

To deal with this scenario, the site identifier of
the current site is now added to the cache identifier,
which leads to different cache entries in this
scenario.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 3

Files 1