I am trying to cache an array with Zend_Cache as follows:
$cache = Zend_Registry::get('cache');
$cache->save($data, 'externalData');
And I get this error:
Message: Datas must be string or set automatic_serialization = true
Although initializing Zend_Cache in the bootstrap file, the auto_serialization parameter is set to tu true:
protected function _initCache()
{
$frontend= array('lifetime' => 7200,
'automatic_seralization' => true);
$backend= array('cache_dir' => 'cache');
$this->cache = Zend_Cache::factory('core',
'File',
$frontend,
$backend);
}
What can cause this error message?
source
share