From 8028456cb444d08791b9b2fb897ab232a0b29a1b Mon Sep 17 00:00:00 2001 From: Bernhard Schmitt Date: Mon, 28 Oct 2024 15:05:50 +0100 Subject: [PATCH] Properly flush ancestor aggregates --- Classes/Infrastructure/ComponentCacheFlusher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Infrastructure/ComponentCacheFlusher.php b/Classes/Infrastructure/ComponentCacheFlusher.php index 7608aeb..a68f7c2 100755 --- a/Classes/Infrastructure/ComponentCacheFlusher.php +++ b/Classes/Infrastructure/ComponentCacheFlusher.php @@ -48,7 +48,7 @@ public function flushNodeAggregate(JoinPointInterface $joinPoint): void ]; $ancestorNodeAggregates = $contentRepository->getContentGraph($workspaceName)->findParentNodeAggregates($nodeAggregateId); $cacheTags = array_merge($cacheTags, array_map( - fn (NodeAggregate $ancestorAggregate): CacheTag => CacheTag::forNodeAggregate($contentRepository->id, $workspaceName, $ancestorAggregate->nodeAggregateId), + fn (NodeAggregate $ancestorAggregate): CacheTag => CacheTag::forAncestorNode($contentRepository->id, $workspaceName, $ancestorAggregate->nodeAggregateId), iterator_to_array($ancestorNodeAggregates), ));