diff --git a/CHANGELOG.md b/CHANGELOG.md index c8660a036..bbf84838e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ * Added ability to set HTTP status code from page header * Implemented simple wild-card custom routing 2. [](#improved) - * Fixed elusive double load to fully cache issue (hopefully!) + * Fixed elusive double load to fully cache issue (crossing fingers...) * Ensure Twig tags are treated as block items in markdown * Removed some older deprecated methods * Ensure onPageContentProcessed() event only fires when not cached diff --git a/system/config/site.yaml b/system/config/site.yaml index 6aae314ca..59ee2ba15 100644 --- a/system/config/site.yaml +++ b/system/config/site.yaml @@ -12,3 +12,4 @@ summary: routes: /something/else: '/blog/sample-3' # Alias for /blog/sample-3 /another/one/here: '/blog/sample-3' # Another alias for /blog/sample-3 + /new/*: '/blog/*' # Wildcard any /new/my-page URL to /blog/my-page Route diff --git a/system/src/Grav/Common/Cache.php b/system/src/Grav/Common/Cache.php index 50d748b7e..9da3974a8 100644 --- a/system/src/Grav/Common/Cache.php +++ b/system/src/Grav/Common/Cache.php @@ -73,7 +73,7 @@ class Cache extends Getters $this->driver = $this->getCacheDriver(); // Set the cache namespace to our unique key - // $this->driver->setNamespace($this->key); + $this->driver->setNamespace($this->key); } /** diff --git a/system/src/Grav/Common/Config/Config.php b/system/src/Grav/Common/Config/Config.php index 0a6b174d7..7cc1cce51 100644 --- a/system/src/Grav/Common/Config/Config.php +++ b/system/src/Grav/Common/Config/Config.php @@ -116,7 +116,7 @@ class Config extends Data public function key() { - return $this->checksum; + return $this->checksum(); } public function reload()