mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-21 13:09:41 +01:00
unlink a .gz version of a file if it exists
This commit is contained in:
parent
08fd6ae474
commit
453ecfdc6b
@ -630,6 +630,13 @@ function file_unlink($path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$ret = @unlink($path);
|
$ret = @unlink($path);
|
||||||
|
|
||||||
|
if ($config['gzip_static']) {
|
||||||
|
$gzpath = "$path.gz";
|
||||||
|
|
||||||
|
@unlink($gzpath);
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($config['purge']) && $path[0] != '/' && isset($_SERVER['HTTP_HOST'])) {
|
if (isset($config['purge']) && $path[0] != '/' && isset($_SERVER['HTTP_HOST'])) {
|
||||||
// Purge cache
|
// Purge cache
|
||||||
if (basename($path) == $config['file_index']) {
|
if (basename($path) == $config['file_index']) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user