diff --git a/Classes/Aspects/ContentCacheAspect.php b/Classes/Aspects/ContentCacheAspect.php index feb4650..7a1b57e 100644 --- a/Classes/Aspects/ContentCacheAspect.php +++ b/Classes/Aspects/ContentCacheAspect.php @@ -129,8 +129,10 @@ public function registerDisableContentCache(JoinPointInterface $joinPoint): void public function interceptContentCacheFlush(JoinPointInterface $joinPoint) { $object = $joinPoint->getProxy(); - $tags = array_keys(ObjectAccess::getProperty($object, 'tagsToFlush', true)); + if ($tags === []) { + return; + } $this->varnishBanService->banByTags($tags); }