Skip to content

Commit e5d8d4f

Browse files
committed
[BUGFIX] Handle possibly removed no_cache property
1 parent 8cafb84 commit e5d8d4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Service/AssetService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ protected function readCacheDisabledInstructionFromContext(): bool
878878
$typoScriptFrontendController = $GLOBALS['TSFE'];
879879

880880
return $hasDisabledInstructionInRequest
881-
|| $typoScriptFrontendController->no_cache
881+
|| (property_exists($typoScriptFrontendController, 'no_cache') && $typoScriptFrontendController->no_cache)
882882
|| (
883883
is_array($typoScriptFrontendController->page)
884884
&& ($typoScriptFrontendController->page['no_cache'] ?? false)

0 commit comments

Comments
 (0)