Skip to content

Commit

Permalink
[BUGFIX] Handle possibly removed no_cache property
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Jan 28, 2025
1 parent 8cafb84 commit e5d8d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Service/AssetService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e5d8d4f

Please sign in to comment.