Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 876 → Rev 877

/trunk/services/bibliotheque/CacheEflore.php
29,11 → 29,12
 
public function consulter() {
list($ressources, $parametres) = func_get_args();
$args = func_get_args(); // XXX: PHP-5.3
$id = $this->genererID($ressources, $parametres);
$retour = unserialize($this->cache->charger($id));
if ($retour == false) {
$retour = call_user_func_array(array($this, 'mettreEnCache'),
func_get_args());
$args);
}
 
return $retour;
41,8 → 42,9
 
public function mettreEnCache() {
list($ressources, $parametres) = func_get_args();
$args = func_get_args(); // XXX: PHP-5.3
$retour = call_user_func_array(array($this->service, 'consulter'),
func_get_args());
$args);
$id = $this->genererID($ressources, $parametres);
if ($this->dureecache > 0) {
$this->cache->sauver(serialize($retour), $id);