Created
May 23, 2011 19:38
-
-
Save eminetto/987401 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$frontendOptions = array( | |
'lifetime' => 7200, // tempo de vida de 2 horas | |
'automatic_serialization' => true | |
); | |
$backendOptions = array( | |
'cache_dir' => CACHE_PATH // | |
); | |
// criando uma instancia do cache | |
$cache = Zend_Cache::factory('Core',//frontend | |
'File', //backend | |
$frontendOptions, | |
$backendOptions); | |
/* | |
* Salva o cache no Registry para ser usado posteriormente | |
*/ | |
Zend_Registry::set('cache', $cache); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment