]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
proxy: fix cache_replacement_policy setting.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 13 Jan 2013 21:46:49 +0000 (22:46 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 13 Jan 2013 21:46:49 +0000 (22:46 +0100)
fixes: 10264
thx to SAHC for help.

html/cgi-bin/proxy.cgi

index 991d69109b6055e09f4629bdd64131c5927fb085..c3997cf18a7c64b8e7f2eab8ef64f3dd3e49dc91 100644 (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