I have a simple MVC app and would like to have cached only a couple of actions.
I was testing some boilerplate code and putting it directly in an action but
the
layout pieces aren't available on subsequent calls; would seem that start is
called before being rendered out. Is there a simple sol'n to this like
mvc=>true
in the options?
public function jtAction(){
$frontendOptions = array(
'debug_header' => true,
'regexps' => array(
'^/' => array(
'cache' => true,
'cache_with_cookie_variables' => true,
)
)
);
$backendOptions = array(
'cache_dir' => '/var/tmp_cache/'
);
$cache = Zend_Cache::factory('Page', 'File', $frontendOptions, $backendOptions);
$cache->start();
}
thanks,
jonathan