From e5d8d4f7dfbb0af46770547fc673e9852d78607e Mon Sep 17 00:00:00 2001 From: Claus Due Date: Tue, 28 Jan 2025 13:24:59 +0100 Subject: [PATCH] [BUGFIX] Handle possibly removed no_cache property --- Classes/Service/AssetService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Service/AssetService.php b/Classes/Service/AssetService.php index c7fc1cfc0..2c7a7847f 100644 --- a/Classes/Service/AssetService.php +++ b/Classes/Service/AssetService.php @@ -878,7 +878,7 @@ protected function readCacheDisabledInstructionFromContext(): bool $typoScriptFrontendController = $GLOBALS['TSFE']; return $hasDisabledInstructionInRequest - || $typoScriptFrontendController->no_cache + || (property_exists($typoScriptFrontendController, 'no_cache') && $typoScriptFrontendController->no_cache) || ( is_array($typoScriptFrontendController->page) && ($typoScriptFrontendController->page['no_cache'] ?? false)