From 36be17617d7cff79a236d01ebfb56b45f2ecb1ea Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Wed, 10 Feb 2016 22:48:04 -0700 Subject: [PATCH] use old cache_id mechanism for safety --- system/src/Grav/Common/Page/Page.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index db055d528..85573528b 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -517,7 +517,7 @@ class Page // Load cached content /** @var Cache $cache */ $cache = self::getGrav()['cache']; - $cache_id = $this->id(); + $cache_id = md5('page' . $this->id()); $content_obj = $cache->fetch($cache_id); if (is_array($content_obj)) { @@ -638,7 +638,7 @@ class Page private function cachePageContent() { $cache = self::getGrav()['cache']; - $cache_id = $this->id(); + $cache_id = md5('page' . $this->id()); $cache->save($cache_id, ['content' => $this->content, 'content_meta' => $this->content_meta]); }