Skip to content

Commit

Permalink
Properly flush ancestor aggregates
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Schmitt committed Oct 28, 2024
1 parent d0d6a45 commit 8028456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Infrastructure/ComponentCacheFlusher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
));

Expand Down

0 comments on commit 8028456

Please sign in to comment.