mirror of
https://github.com/getgrav/grav.git
synced 2026-07-05 06:57:50 +02:00
Make cachePageContent() method publicly accessible - #810
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user