From 267edbee7d52f45541c02fef29c696ca4a91f35a Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 31 Dec 2015 16:25:27 -0700 Subject: [PATCH] optimization --- system/src/Grav/Common/Page/Page.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index aa7ab1dbf..20e450a60 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -504,9 +504,6 @@ class Page // Content Processed but not cached yet self::getGrav()->fireEvent('onPageContentProcessed', new Event(['page' => $this])); - if ($cache_enable) { - $this->cachePageContent(); - } } else { if ($process_markdown) { $this->processMarkdown(); @@ -518,9 +515,10 @@ class Page if ($process_twig) { $this->processTwig(); } - if ($cache_enable) { - $this->cachePageContent(); - } + } + + if ($cache_enable) { + $this->cachePageContent(); } }