From 13c058d9a21b40f4d3669562bde7689eec24c91c Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Wed, 30 Oct 2024 12:02:14 +0100 Subject: [PATCH] IBX-8534: Added cache invalidation for source content when adding relation --- src/lib/Persistence/Cache/ContentHandler.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/Persistence/Cache/ContentHandler.php b/src/lib/Persistence/Cache/ContentHandler.php index a54e6bb293..68d8027f02 100644 --- a/src/lib/Persistence/Cache/ContentHandler.php +++ b/src/lib/Persistence/Cache/ContentHandler.php @@ -445,6 +445,10 @@ public function addRelation(RelationCreateStruct $relation) self::CONTENT_IDENTIFIER, [$relation->destinationContentId] ), + $this->cacheIdentifierGenerator->generateTag( + self::CONTENT_IDENTIFIER, + [$relation->sourceContentId] + ), ]); return $this->persistenceHandler->contentHandler()->addRelation($relation);