aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-10-14 21:50:28 +0200
committerdoktornotor <notordoktor@gmail.com>2015-10-14 21:50:28 +0200
commit4978d111b52ca1e7f324a557d7f299c5a5c79e40 (patch)
tree9b6bf51ac231aca0117d38083bb102b8a8241785 /config
parentfd10cef996f12b543d79aed2919651c7f7f1e8c4 (diff)
downloadpfsense-packages-4978d111b52ca1e7f324a557d7f299c5a5c79e40.tar.gz
pfsense-packages-4978d111b52ca1e7f324a557d7f299c5a5c79e40.tar.bz2
pfsense-packages-4978d111b52ca1e7f324a557d7f299c5a5c79e40.zip
Only try to remove old cachedir if it was actually configured, instead of unset
Diffstat (limited to 'config')
-rwxr-xr-xconfig/squid3/34/squid_cache.xml8
1 files changed, 5 insertions, 3 deletions
diff --git a/config/squid3/34/squid_cache.xml b/config/squid3/34/squid_cache.xml
index 47471df9..b4f1aedf 100755
--- a/config/squid3/34/squid_cache.xml
+++ b/config/squid3/34/squid_cache.xml
@@ -42,8 +42,8 @@
]]>
</copyright>
<name>squidcache</name>
- <version>0.4.0</version>
- <title>Proxy Server: Cache management</title>
+ <version>0.4.1</version>
+ <title>Proxy Server: Cache Management</title>
<include_file>/usr/local/pkg/squid.inc</include_file>
<tabs>
<tab>
@@ -410,7 +410,9 @@
// do not leave orphaned cachedirs if harddisk_cache_location changed
if ($_POST['harddisk_cache_location'] != $config['installedpackages']['squidcache']['config'][0]['harddisk_cache_location']) {
$oldcachedir = $config['installedpackages']['squidcache']['config'][0]['harddisk_cache_location'];
- $cachedir_changed = true;
+ if ($oldcachedir != "") {
+ $cachedir_changed = true;
+ }
}
]]>
</custom_php_command_before_form>