42,7 → 42,7 |
error_log(sprintf("%s: Attention, %s invalide: creation [%s]", |
__FILE__, |
$stockage_chemin, |
$_SERVER['REQUEST_URI'])); |
@$_SERVER['REQUEST_URI'])); |
mkdir($stockage_chemin, 0755, TRUE); |
} |
if (!realpath($stockage_chemin)) { |
49,12 → 49,12 |
error_log(sprintf("%s: Attention, realpath(%s) invalide [%s]", |
__FILE__, |
$stockage_chemin, |
$_SERVER['REQUEST_URI'])); |
@$_SERVER['REQUEST_URI'])); |
} else if(!is_writable(realpath($stockage_chemin))) { |
error_log(sprintf("%s: Attention, realpath(%s) non-inscriptible [%s]", |
__FILE__, |
realpath($stockage_chemin), |
$_SERVER['REQUEST_URI'])); |
@$_SERVER['REQUEST_URI'])); |
} else { |
$this->duree_de_vie = isset($duree_de_vie) ? $duree_de_vie : 3600*24; |
} |
110,7 → 110,7 |
if ($fh) { |
if (fwrite($fh, $contenu)) { |
if (fclose($fh)) { |
error_log(sprintf("%s: caching \"%s\" [%s]", __FILE__, $chemin_fichier_cache, $_SERVER['REQUEST_URI'])); |
error_log(sprintf("%s: caching \"%s\" [%s]", __FILE__, $chemin_fichier_cache, @$_SERVER['REQUEST_URI'])); |
|
$ok = true; |
} |
120,7 → 120,7 |
} |
} |
} |
if(!$ok) error_log(sprintf("%s: ERROR trying to cache \"%s\" [%s]", __FILE__, $chemin_fichier_cache, $_SERVER['REQUEST_URI'])); |
if(!$ok) error_log(sprintf("%s: ERROR trying to cache \"%s\" [%s]", __FILE__, $chemin_fichier_cache, @$_SERVER['REQUEST_URI'])); |
return $ok; |
} |
} |