diff --git a/Classes/ExtBaseFluid/Controller/CacheTagsTrait.php b/Classes/ExtBaseFluid/Controller/CacheTagsTrait.php index ec40267f..f8a07b64 100644 --- a/Classes/ExtBaseFluid/Controller/CacheTagsTrait.php +++ b/Classes/ExtBaseFluid/Controller/CacheTagsTrait.php @@ -51,7 +51,8 @@ public function callActionMethod(RequestInterface $request): ResponseInterface protected function handleCacheTags() { - if ($cacheTags = $this->settings['cacheTags'][strtolower($this->request->getControllerName())][$this->request->getControllerActionName()]) { + $cacheTags = $this->settings['cacheTags'][strtolower($this->request->getControllerName())][$this->request->getControllerActionName()] ?? null; + if ($cacheTags) { TYPO3::getTSFE()->addCacheTags($cacheTags); } }