Triggered after a page content is evaluated.
The event handler accepts the page object and the page content string.
This event can be used for custom page caching implementations.
public function subscribeEvents()
{
Backend::$events->addEvent('cms:onAfterEvalPageContent', $this, 'after_eval_page_content');
}
public function after_eval_page_content($page, $content)
{
if ($page->url !== 'my-special-page')
return;
// Save the $content variable to some cache
}