diff --git a/CHANGELOG.md b/CHANGELOG.md index a65be113..cd96957e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,11 @@ Changelog 1.x === +1.11.2 +------ + +* Fix: Sanitize cache key of entries with workspace name. + 1.11.1 ------ diff --git a/src/Jackalope/Transport/DoctrineDBAL/CachedClient.php b/src/Jackalope/Transport/DoctrineDBAL/CachedClient.php index fde58f5d..aa01b04a 100644 --- a/src/Jackalope/Transport/DoctrineDBAL/CachedClient.php +++ b/src/Jackalope/Transport/DoctrineDBAL/CachedClient.php @@ -108,7 +108,7 @@ public function createWorkspace($name, $srcWorkspace = null): void parent::createWorkspace($name, $srcWorkspace); $this->caches['meta']->delete('workspaces'); - $this->caches['meta']->set("workspace: $name", 1); + $this->caches['meta']->set($this->sanitizeKey("workspace: $name"), 1); } public function deleteWorkspace($name): void @@ -116,7 +116,7 @@ public function deleteWorkspace($name): void parent::deleteWorkspace($name); $this->caches['meta']->delete('workspaces'); - $this->caches['meta']->delete("workspace: $name"); + $this->caches['meta']->delete($this->sanitizeKey("workspace: $name")); $this->clearCaches(); }