Skip to content

Commit

Permalink
Merge pull request #303 from rederrik/fix-cached-client
Browse files Browse the repository at this point in the history
fixed a typo in caches array index
  • Loading branch information
dbu committed Oct 14, 2015
2 parents 59bfba8 + fbdb75a commit 40e42b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Jackalope/Transport/DoctrineDBAL/CachedClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 40e42b1

Please sign in to comment.