Hi,
I am using following code for Zend Front End cache. It is not working as expected. Can anyone please look and let me know if anything needs to be done?
Expected Output: Cache the pages for 12 Hrs.
protected function _initCache()
{
$frontendOptions = array
(
'lifetime' => CFG_CACHE_LIFETIME_IN_SECONDS,
'automatic_serialization' => true,
'default_options' => array
(
'cache_with_get_variables' => true,
'cache_with_post_variables' => true,
'cache_with_session_variables' => true,
'cache_with_files_variables' => true,
'cache_with_cookie_variables' => true,
'make_id_with_get_variables' => true,
'make_id_with_post_variables' => true,
'make_id_with_session_variables' => true,
'make_id_with_files_variables' => true,
'make_id_with_cookie_variables' => true,
'cache'=>true
),
);
$backendOptions = array
(
'cache_dir' => APPLICATION_PATH . '/../cache/'
);
$cache = Zend_Cache::factory('Page', 'File', $frontendOptions, $backendOptions);
$cache->start();
Zend_Registry::set('objCache',$cache);
}

