Fix squid configuration if no hdd cache should be used.

This commit is contained in:
Arne Fitzenreiter
2010-12-27 00:28:26 +01:00
parent 8783778793
commit e07587fc59
2 changed files with 2 additions and 3 deletions

View File

@@ -3075,10 +3075,8 @@ cache_mem $proxysettings{'CACHE_MEM'} MB
END
;
if ($proxysettings{'CACHE_SIZE'} eq '0')
if ($proxysettings{'CACHE_SIZE'} ne '0')
{
print FILE "cache_dir null /var/tmp\n\n";
} else {
print FILE "cache_dir aufs /var/log/cache $proxysettings{'CACHE_SIZE'} $proxysettings{'L1_DIRS'} 256\n\n";
}