Make cachePageContent() method publicly accessible - #810

This commit is contained in:
Andy Miller
2016-05-02 17:37:27 -06:00
parent 400b87fb96
commit bddf8751b2
2 changed files with 2 additions and 1 deletions

View File

@@ -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)

View File

@@ -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());