hello,
I need some help about Zend_Cache.
Please look at the following code.
$this->_cache = Zend_Cache::factory('Core','File', $frontendOptions,
$backendOptions);
$this->_frontCtrl = $this->_cache->load('frontCtrl');
if(empty($this->_frontCtrl )){
$this->_frontCtrl = $this->_getFrontController();
$this->_cache->save($this->_frontCtrl, 'frontCtrl');
}
Firstly,i creat a object and save it to $this->_cache;and next,i get the
object from cache.
if($this->_frontCtrl instanceof Zend_Controller_Front){
echo 'Loading ok';
}
Here, all normal.I can get a object saved before.
But " $this->_frontCtrl->dispatch();" doesn't work.
Invalid controller specified (auth)#0
D:\MyProject\php\auction\library\Zend\Controller\Front.php(911):
Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
Object(Zend_Controller_Response_Http)) #1
If i try to remove the $this->_cache ,like this:
$this->_frontCtrl = $this->_getFrontController();//the same setting like
before!
$this->_frontCtrl->dispatch();
it's no problem.
--
View this message in context:
http://www.nabble.com/-Zend_Cache-Why-i-cannot-cache-my-Zend_Controller_Front--tf4374896s16154.html#a12470268
Sent from the Zend Framework mailing list archive at Nabble.com.