Skip to content

Commit

Permalink
IBX-8534: Added cache invalidation for source content when adding rel…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
ViniTou committed Oct 30, 2024
1 parent ac4e57c commit 13c058d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/Persistence/Cache/ContentHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 13c058d

Please sign in to comment.