This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

cms:onAfterEvalPageContent event

Triggered by Cms_Controller
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onAfterEvalPageContent(Cms_Page $page, string $content)
$page Cms_Page specifies the CMS page object.
$content string specifies the evaluated page content.
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.
Usage example:
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
}