Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected function _initCache()
- {
- $frontendName = 'Page';
- $backendName = 'File';
- $frontendOptions = array(
- 'lifetime' => 3600,
- 'debug_header' => false,
- 'automatic_cleaning_factor' => 10000,
- 'default_options' => array(
- 'cache' => true,
- 'cache_with_get_variables' => true,
- 'cache_with_cookie_variables' => true,
- 'cache_with_session_variables' => true,
- 'cache_with_post_variables' => false,
- 'make_id_with_get_variables' => true,
- 'make_id_with_post_variables' => false,
- 'make_id_with_session_variables' => false,
- 'make_id_with_files_variables' => false,
- 'make_id_with_cookie_variables' => false,
- )
- $backendOptions = array(
- 'cache_dir' => APPLICATION_PATH . '/data/cache'
- );
- $cache = Zend_Cache::factory($frontendName, $backendName, $frontendOptions, $backendOptions);
- $cache->start();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement