Skip to content

Commit 42023a9

Browse files
authored
Merge pull request #451 from jackalope/fix-referenceable-cachekey-sanitize
add missing cache key sanitize call for uuid map of referenceable nodes
2 parents a56dba2 + 8cddf1f commit 42023a9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
2.0.2
5+
-----
6+
7+
* Fixed cache key sanitize for UUID map of referenceable nodes.
8+
49
2.0.1
510
-----
611

src/Jackalope/Transport/DoctrineDBAL/CachedClient.php

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ private function clearNodeCache(Node $node): void
103103
if ($node->isNodeType('mix:referenceable')) {
104104
$uuid = $node->getIdentifier();
105105
$cacheKey = "nodes by uuid: $uuid, ".$this->workspaceName;
106+
$cacheKey = $this->sanitizeKey($cacheKey);
106107
$this->caches['nodes']->delete($cacheKey);
107108
}
108109
}

0 commit comments

Comments
 (0)