proxy: fix cache_replacement_policy setting.

fixes: 10264
thx to SAHC for help.
This commit is contained in:
Arne Fitzenreiter
2013-01-13 22:46:49 +01:00
parent 1cab447f8f
commit e7b7cbae36

View File

@@ -3086,12 +3086,6 @@ pid_filename /var/run/squid.pid
cache_mem $proxysettings{'CACHE_MEM'} MB
END
;
if ($proxysettings{'CACHE_SIZE'} ne '0')
{
print FILE "cache_dir aufs /var/log/cache $proxysettings{'CACHE_SIZE'} $proxysettings{'L1_DIRS'} 256\n\n";
}
print FILE "error_directory $errordir/$proxysettings{'ERR_LANGUAGE'}\n\n";
if ($proxysettings{'OFFLINE_MODE'} eq 'on') { print FILE "offline_mode on\n\n"; }
@@ -3109,6 +3103,11 @@ END
print FILE "\n";
}
if ($proxysettings{'CACHE_SIZE'} ne '0')
{
print FILE "cache_dir aufs /var/log/cache $proxysettings{'CACHE_SIZE'} $proxysettings{'L1_DIRS'} 256\n\n";
}
if ($proxysettings{'LOGGING'} eq 'on')
{
print FILE <<END