From fa60b93ff93d967a33ef77e4b2988ac40e36c6b2 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Fri, 25 Sep 2015 10:56:14 -0600 Subject: [PATCH] Fix for #331 --- system/src/Grav/Common/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Cache.php b/system/src/Grav/Common/Cache.php index f2135ac70..0445c502b 100644 --- a/system/src/Grav/Common/Cache.php +++ b/system/src/Grav/Common/Cache.php @@ -102,7 +102,7 @@ class Cache extends Getters $this->enabled = (bool) $this->config->get('system.cache.enabled'); // Cache key allows us to invalidate all cache on configuration changes. - $this->key = substr(md5(($prefix ? $prefix : 'g') . $uri->rootUrl(true) . $this->config->key() . GRAV_VERSION), 2, 8); + $this->key = ($prefix ? $prefix : 'g') . '-' . substr(md5($uri->rootUrl(true) . $this->config->key() . GRAV_VERSION), 2, 8); $this->driver = $this->getCacheDriver();