Skip to content
Snippets Groups Projects
Commit e3cc38dc authored by Elias Häußler's avatar Elias Häußler Committed by Anja Leichsenring
Browse files

[BUGFIX] Replace access to non-existent TSFE property

The TSFE->cacheExpires property was removed in #102422. This
patch removes an existing property access and replaces it with
its successor in PrepareTypoScriptFrontendRendering middleware.

Resolves: #104975
Related: #102422
Releases: main
Change-Id: I106209ac5aa896abdd7838f6922cbb20f8411106
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/86105


Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 0ef9b20f
No related merge requests found
......@@ -163,7 +163,7 @@ final readonly class PrepareTypoScriptFrontendRendering implements MiddlewareInt
$dateFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'];
$timeFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'];
$controller->debugInformationHeader = 'Cached page generated ' . date($dateFormat . ' ' . $timeFormat, $controller->cacheGenerated)
. '. Expires ' . date($dateFormat . ' ' . $timeFormat, $controller->cacheExpires);
. '. Expires ' . date($dateFormat . ' ' . $timeFormat, $pageCacheRow['expires']);
}
if ($setupConfigAst->getChildByName('no_cache')?->getValue()) {
// Disable cache if config.no_cache is set!
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment