diff --git a/system/src/Grav/Common/Cache.php b/system/src/Grav/Common/Cache.php index 81567d5cf..5300be861 100644 --- a/system/src/Grav/Common/Cache.php +++ b/system/src/Grav/Common/Cache.php @@ -263,6 +263,15 @@ class Cache extends Getters return $this->key; } + /** + * Setter method to set key (Advanced) + */ + public function setKey($key) + { + $this->key = $key; + $this->driver->setNamespace($this->key); + } + /** * Helper method to clear all Grav caches *