From 45525af84679f4d8a6696a6a812d89b89765eca1 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Sun, 9 Nov 2014 12:53:13 -0700 Subject: [PATCH] Force route rebuild when config changes (needed when changing home alias) --- system/src/Grav/Common/Page/Pages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Page/Pages.php b/system/src/Grav/Common/Page/Pages.php index c29b20104..dc8c375be 100644 --- a/system/src/Grav/Common/Page/Pages.php +++ b/system/src/Grav/Common/Page/Pages.php @@ -406,7 +406,7 @@ class Pages $last_modified = Folder::lastModifiedFile(PAGES_DIR); } - $page_cache_id = md5(USER_DIR.$last_modified); + $page_cache_id = md5(USER_DIR.$last_modified.$config->checksum()); list($this->instances, $this->routes, $this->children, $taxonomy_map, $this->sort) = $cache->fetch($page_cache_id); if (!$this->instances) {