From 29d2eed5fb634384bdcce87a6bfa9ed530550384 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Mon, 1 Dec 2014 16:56:04 -0700 Subject: [PATCH 1/3] example wildcard route --- system/config/site.yaml | 1 + 1 file changed, 1 insertion(+) 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 From 94d019982bd7307e5912d280f38346f1695a6a1e Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Mon, 1 Dec 2014 16:56:39 -0700 Subject: [PATCH 2/3] better fix for multiple cache that helps resolve broken images --- system/src/Grav/Common/Cache.php | 2 +- system/src/Grav/Common/Config/Config.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() From e66b89f08c3baa2806043183e460196a032e7345 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Mon, 1 Dec 2014 17:06:16 -0700 Subject: [PATCH 3/3] trying again! --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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