mirror of
https://github.com/getgrav/grav.git
synced 2026-02-22 14:38:13 +01:00
Add event when caching markdown content too
This commit is contained in:
@@ -360,6 +360,7 @@ class Page
|
||||
|
||||
// Do we want to cache markdown, but process twig in each page?
|
||||
if ($update_cache && $process_twig) {
|
||||
self::$grav->fireEvent('onPageContentProcessed', new Event(['page' => $this]));
|
||||
$cache->save($cache_id, $this->content);
|
||||
$update_cache = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user