Je suis en train de mettre en cache un tableau avec Zend_Cache comme ceci:Zend_Cache - "Datas doit être une chaîne ou un ensemble automatic_serialization = true"
$cache = Zend_Registry::get('cache');
// $data is an array
$cache->save($data, 'externalData');
Et je reçois cette erreur:
Message: Datas must be string or set automatic_serialization = true
Même si le automatic_serialization est vrai lors de l'initialisation tu Zend_Cache dans le fichier d'amorçage:
protected function _initCache()
{
$frontend= array('lifetime' => 7200,
'automatic_seralization' => true);
$backend= array('cache_dir' => 'cache');
$this->cache = Zend_Cache::factory('core',
'File',
$frontend,
$backend);
}
Que pourrait c ause ce message d'erreur?
Oui c'était le problème :) –