protected function shouldCacheRequest(MvcEvent $e)
{
// Early break if page should not be cached
$event = new CacheEvent(CacheEvent::EVENT_SHOULDCACHE, $this);
$this->getEventManager()->trigger($event);
if ($event->getAbort()) {
return false;
}
if ($this->shouldCache($e)) {
return true;
}
return false;
}