diff --git a/framework/legacy/Needlworks.Cache.PageCache.php b/framework/legacy/Needlworks.Cache.PageCache.php index 1fb6654f8..f27c61b2c 100644 --- a/framework/legacy/Needlworks.Cache.PageCache.php +++ b/framework/legacy/Needlworks.Cache.PageCache.php @@ -191,7 +191,11 @@ public static function getInstance() { public function reset($query = null, $prefix = null) { $this->query = $this->queryHash = $this->contents = $this->error = $this->prefix = $this->namespace = null; $this->query = $query; - $this->prefix = (!is_null($prefix) ? $prefix : "")."-"; + if(!is_null($prefix)) { + $this->prefix = $prefix."-"; + $this->namespace = $this->prefix; + } + } public function create() {