PHP 클래스 Gc\Mvc\Listener\CacheListener

상속: extends Zend\EventManager\AbstractListenerAggregate
파일 보기 프로젝트 열기: gotcms/gotcms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$loadedFromCache boolean Define if it's load from cache

공개 메소드들

메소드 설명
attach ( Zend\EventManager\EventManagerInterface $events ) : void Attach events
cacheIsActive ( MvcEvent $e ) : boolean Check if cache is active
onFinish ( MvcEvent $e ) : void Save page contents to the cache
onRoute ( MvcEvent $e ) : Zend\Stdlib\ResponseInterface | void Load the page contents from the cache and set the response.

메소드 상세

attach() 공개 메소드

Attach events
public attach ( Zend\EventManager\EventManagerInterface $events ) : void
$events Zend\EventManager\EventManagerInterface Event manager
리턴 void

cacheIsActive() 공개 메소드

Check if cache is active
public cacheIsActive ( MvcEvent $e ) : boolean
$e Zend\Mvc\MvcEvent Mvc Event
리턴 boolean

onFinish() 공개 메소드

Save page contents to the cache
public onFinish ( MvcEvent $e ) : void
$e Zend\Mvc\MvcEvent Mvc Event
리턴 void

onRoute() 공개 메소드

Load the page contents from the cache and set the response.
public onRoute ( MvcEvent $e ) : Zend\Stdlib\ResponseInterface | void
$e Zend\Mvc\MvcEvent Mvc Event
리턴 Zend\Stdlib\ResponseInterface | void

프로퍼티 상세

$loadedFromCache 보호되어 있는 프로퍼티

Define if it's load from cache
protected bool $loadedFromCache
리턴 boolean