diff --git a/inc/functions.php b/inc/functions.php index d5295b16..af45c014 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -331,7 +331,7 @@ } $ret = @unlink($path); - if(isset($config['purge']) && isset($_SERVER['HTTP_HOST'])) { + if(isset($config['purge']) && $path[0] != '/' && isset($_SERVER['HTTP_HOST'])) { // Purge cache if(basename($path) == $config['file_index']) { // Index file (/index.html); purge "/" as well