/trunk/framework/CacheSimple.php |
---|
110,6 → 110,8 |
if ($fh) { |
if (fwrite($fh, $contenu)) { |
if (fclose($fh)) { |
error_log(sprintf("%s: caching \"%s\" [%s]", __FILE__, $chemin_fichier_cache, $_SERVER['REQUEST_URI'])); |
$ok = true; |
} |
} |
118,6 → 120,7 |
} |
} |
} |
if(!$ok) error_log(sprintf("%s: ERROR trying to cache \"%s\" [%s]", __FILE__, $chemin_fichier_cache, $_SERVER['REQUEST_URI'])); |
return $ok; |
} |
} |