Consultez la FAQ sur le ZF avant de poster une question
Vous n'êtes pas identifié.
Pages: 1
Bonjour,
j'utilise Zend_Cache_Backend_Static et dans mon controller Zend_Controller_Action_Helper_Cache.
Je n'arrive pas à arreter la mise en cache lors d'une redirection
Quelqu'un a une idée ?
ex :
class SamyController extends App_Controller_Action
{
public function init()
{
parent::init();
$this->_helper->cache(array('index'), array('all'));
}
public function indexAction()
{
if (condition) {
// j'aimerai arrêter la mise en cache
/*$this->_cacheManager = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('cachemanager');
$cache = $this->_cacheManager->getCache('page');
$cache->cancel();*/
header("HTTP/1.0 301 Moved Permanently");
header("Location: " . $url);
exit;
}
}
}
Dernière modification par samy34 (30-06-2010 01:46:12)
Hors ligne
Pages: 1