From bddf8751b29dcfdfa60b74aec7892abc503905b3 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Mon, 2 May 2016 17:37:27 -0600 Subject: [PATCH] Make `cachePageContent()` method publicly accessible - #810 --- CHANGELOG.md | 1 + system/src/Grav/Common/Page/Page.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 453ca9365..192bf779d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ 1. [](#improved) * Pass the Page type when calling `onBlueprintCreated` + * Changed `Page::cachePageContent()` form **private** to **public** so a page can be recached via plugin 1. [](#bugfix) * Fixed handling of `{'loading':'async'}` with Assets Pipeline * Fix for new modular page modal `Page` field requiring a value [#529](https://github.com/getgrav/grav-plugin-admin/issues/529) diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index 6528ad952..ee01576f2 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -698,7 +698,7 @@ class Page /** * Fires the onPageContentProcessed event, and caches the page content using a unique ID for the page */ - private function cachePageContent() + public function cachePageContent() { $cache = Grav::instance()['cache']; $cache_id = md5('page' . $this->id());