diff options
Diffstat (limited to 'config')
-rwxr-xr-x | config/squid3/34/squid.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index 3ef5e270..ee1d8b97 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -129,7 +129,7 @@ function squid_dash_z($cache_action='none') { $cachedir = ($settings['harddisk_cache_location'] ? $settings['harddisk_cache_location'] : '/var/squid/cache'); - if ($cache_action == "clean") { + if ($cache_action == "clean" && file_exists($cachedir)) { rename ($cachedir, "{$cachedir}.old"); mwexec_bg("/bin/rm -rf {$cachedir}.old"); } |