mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-14 13:02:58 +02:00
proxy: fix cache_replacement_policy setting.
fixes: 10264 thx to SAHC for help.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user