29,12 → 29,11 |
|
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'), |
$args); |
func_get_args()); |
} |
|
return $retour; |
42,9 → 41,8 |
|
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'), |
$args); |
func_get_args()); |
$id = $this->genererID($ressources, $parametres); |
if ($this->dureecache > 0) { |
$this->cache->sauver(serialize($retour), $id); |