Skip to content

Commit

Permalink
Merge pull request #451 from jackalope/fix-referenceable-cachekey-san…
Browse files Browse the repository at this point in the history
…itize

add missing cache key sanitize call for uuid map of referenceable nodes
  • Loading branch information
dbu authored Jul 9, 2024
2 parents a56dba2 + 8cddf1f commit 42023a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

2.0.2
-----

* Fixed cache key sanitize for UUID map of referenceable nodes.

2.0.1
-----

Expand Down
1 change: 1 addition & 0 deletions src/Jackalope/Transport/DoctrineDBAL/CachedClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ private function clearNodeCache(Node $node): void
if ($node->isNodeType('mix:referenceable')) {
$uuid = $node->getIdentifier();
$cacheKey = "nodes by uuid: $uuid, ".$this->workspaceName;
$cacheKey = $this->sanitizeKey($cacheKey);
$this->caches['nodes']->delete($cacheKey);
}
}
Expand Down

0 comments on commit 42023a9

Please sign in to comment.