Skip to content
Snippets Groups Projects
Commit dc067a32 authored by llaffont's avatar llaffont
Browse files

Cache des boites: suppression de la serialization

parent 0d89b221
Branches
Tags
No related merge requests found
......@@ -247,7 +247,7 @@ class ZendAfi_View_Helper_Accueil_Base extends ZendAfi_View_Helper_ModuleAbstrac
$cache = Zend_Registry::get('cache');
if ($this->shouldCacheContent() and ($boite = $cache->load($key)))
return array_first(ZendAfi_Filters_Serialize::unserialize($boite));
return $boite;
$template = $this->getTemplate();
......@@ -256,7 +256,7 @@ class ZendAfi_View_Helper_Accueil_Base extends ZendAfi_View_Helper_ModuleAbstrac
if ($this->shouldCacheContent())
$cache->save(ZendAfi_Filters_Serialize::serialize(array($boite)), $key);
$cache->save($boite, $key);
return $boite;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment