Ajout intégration du cache de metadata
This commit is contained in:
parent
a2a4c43c38
commit
5c6841473e
@ -138,5 +138,19 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
$frontController->registerPlugin($debug);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected function _initCache()
|
||||
{
|
||||
//MetadataCache pour la base de données
|
||||
$frontendOptions = array(
|
||||
'lifetime' => 14400,
|
||||
'automatic_serialization' => true
|
||||
);
|
||||
$backendOptions = array();
|
||||
$cache = Zend_Cache::factory('Core','Apc', $frontendOptions, $backendOptions);
|
||||
Zend_Db_Table_Abstract::setDefaultMetadataCache($cache);
|
||||
|
||||
//Cache pour les données de la base à stocker
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user