can't get Zend_Cache to work.

function buildAction(){

        $frontendOptions = array(
'automatic_serialization' => true);

$backendOptions = array(
'cache_dir' => '../../_tmp'
);

$cache = Zend_Cache::factory('Core', 'File', $frontendOptions,
$backendOptions);

                $foo = 'foo';
                $cache->save($foo, 'acl');      
                $this->view->message = $cache->load('acl');

}


build.phtml:

<?
echo $this->message; print_r($this->message);


All I get is a blank screen. I know that cache should be set up in
bootstrap. I've just put all the code under an action while I'm debuging.

Any suggestions? I'm stumped
-- 
View this message in context: 
http://www.nabble.com/Zend_Cache-blank-screen-tf4107962s16154.html#a11681847
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to