From 91b4b904f8832c3eed7fa788594f646ca5b88569 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 22 Jun 2010 12:13:04 -0400 Subject: Do not initialize the cache if the null type is chosen. --- config/squid/squid.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config') diff --git a/config/squid/squid.inc b/config/squid/squid.inc index 4f3bd034..f804ef87 100644 --- a/config/squid/squid.inc +++ b/config/squid/squid.inc @@ -76,6 +76,11 @@ function squid_chown_recursive($dir, $user, $group) { function squid_dash_z() { global $config; $settings = $config['installedpackages']['squidcache']['config'][0]; + + // If the cache system is null, there is no need to initialize the (irrelevant) cache dir. + if ($settings['harddisk_cache_system'] == "null") + return; + $cachedir =($settings['harddisk_cache_location'] ? $settings['harddisk_cache_location'] : '/var/squid/cache'); if(!is_dir($cachedir.'/')) { -- cgit v1.2.3