Browse Source

Exclure les fichier CACHEDIR.TAG de la vidange de cache

Ref #4431 & https://www.mail-archive.com/spip-zone@rezo.net/msg49159.html
issue_4031
b_b 3 years ago committed by Gitea
parent
commit
b9648007ef
  1. 4
      ecrire/inc/invalideur.php

4
ecrire/inc/invalideur.php

@ -188,8 +188,8 @@ function purger_repertoire($dir, $options = array()) {
$total = 0;
while (($fichier = @readdir($handle)) !== false) {
// Eviter ".", "..", ".htaccess", ".svn" etc.
if ($fichier[0] == '.') {
// Eviter ".", "..", ".htaccess", ".svn" etc & CACHEDIR.TAG
if ($fichier[0] == '.' OR $fichier == 'CACHEDIR.TAG') {
continue;
}
$chemin = "$dir/$fichier";

Loading…
Cancel
Save