/** * Do http caching jobs * * @param Enlight_Controller_ActionEventArgs $args */ public function onPreDispatch(\Enlight_Controller_ActionEventArgs $args) { $this->action = $args->getSubject(); $this->request = $args->getRequest(); $this->response = $args->getResponse(); $this->Application()->Events()->registerListener(new Enlight_Event_Handler_Default('Enlight_Controller_Action_PostDispatch', array($this, 'onPostDispatch'), 399)); }