Skip to content

Commit

Permalink
Merge pull request #5124 from dlubitz/bugfix/flush-cache-for-deleted-…
Browse files Browse the repository at this point in the history
…nodes

BUGFIX: Flush cache also for deleted nodes
  • Loading branch information
mhsdesign authored Jun 5, 2024
2 parents 9191b54 + 9341dac commit 0eb3c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Neos.Neos/Classes/Fusion/Cache/ContentCacheFlusher.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ protected function registerAllTagsToFlushForNodeInWorkspace(NodeInterface $node,
{
// Ensure that we're dealing with the variant of the given node that actually
// lives in the given workspace
if ($node->getWorkspace()->getName() !== $workspace->getName()) {
if ($node->isRemoved() === false && $node->getWorkspace()->getName() !== $workspace->getName()) {
$workspaceContext = $this->contextFactory->create(
array_merge(
$node->getContext()->getProperties(),
Expand Down

0 comments on commit 0eb3c69

Please sign in to comment.