diff --git a/src/Jackalope/Transport/DoctrineDBAL/CachedClient.php b/src/Jackalope/Transport/DoctrineDBAL/CachedClient.php index bc930702..06ac5d4a 100644 --- a/src/Jackalope/Transport/DoctrineDBAL/CachedClient.php +++ b/src/Jackalope/Transport/DoctrineDBAL/CachedClient.php @@ -53,13 +53,13 @@ private function clearCaches(array $caches = null) private function clearNodeCache(Node $node) { $cacheKey = "nodes: {$node->getPath()}, ".$this->workspaceName; - $this->caches['node']->delete($cacheKey); + $this->caches['nodes']->delete($cacheKey); // actually in the DBAL all nodes have a uuid .. if ($node->isNodeType('mix:referenceable')) { $uuid = $node->getIdentifier(); $cacheKey = "nodes by uuid: $uuid, ".$this->workspaceName; - $this->caches['node']->delete($cacheKey); + $this->caches['nodes']->delete($cacheKey); } }