Skip to content

Commit a4175c5

Browse files
Merge pull request #59 from Flowpack/bugfix/dont-flush-empty-tags
BUGFIX: Don't flush if tags is an empty array
2 parents bbd38eb + 34a8b22 commit a4175c5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Classes/Aspects/ContentCacheAspect.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,10 @@ public function registerDisableContentCache(JoinPointInterface $joinPoint): void
129129
public function interceptContentCacheFlush(JoinPointInterface $joinPoint)
130130
{
131131
$object = $joinPoint->getProxy();
132-
133132
$tags = array_keys(ObjectAccess::getProperty($object, 'tagsToFlush', true));
133+
if ($tags === []) {
134+
return;
135+
}
134136

135137
$this->varnishBanService->banByTags($tags);
136138
}

0 commit comments

Comments
 (0)