Review main Merged Breaking

75039[!!!][FEATURE] Introduce PSR-14 events when storing cached content in frontend

Benni Mack CR +2 V +2 Hard +394 −84 updated 07/07/22, 19:29

Commit message

This change adds two new PSR-14 Events

* \TYPO3\CMS\Frontend\Event\AfterCacheableContentIsGeneratedEvent
* \TYPO3\CMS\Frontend\Event\AfterCachedPageIsPersistedEvent

which replace
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-cached']
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-all']
and
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['usePageCache']
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['insertPageIncache']
hooks.

Those hooks were much important and powerful, receiving
even more power by the new Events, which allow manipulating
content stored in cache, or when a page was cached in the
Frontend.

Additionally, the TSFE->generatePage_postProcessing() method
does now require a ServerRequestInterface as first paramter,
to be able to pass the current request to the new events.

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 1

Files 11