In preDispath of Zend_Controller_Action verify the Cache. If the Cache is
available i don“t want to launch the action, is possible to do this?.
class IndexController extends Zend_Controller_Action{
protected $_news = null;
public function preDispatch(){
$frontendOptions= array('lifeTime' =>
600,'automatic_serialization'=>true);
$backendOptions= array('cache_dir' => '../tmp/');
$this->cache = Zend_Cache::factory('Output', 'File', $frontendOptions,
$backendOptions);
$this->_helper->viewRenderer->setNoRender();
if ($contentCache = $this->cache->load('index')){
echo "Cachedddd";
// Skip Actionnn
}
}
}
Thanks in advance
--
View this message in context:
http://www.nabble.com/Skip-action-tp19612879p19612879.html
Sent from the Zend Framework mailing list archive at Nabble.com.