Add RAM-only Proxy functionality - Bug Report #10592
Message ID | 56807AF3.3000109@gmx.de |
---|---|
State | Superseded |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.tremer.info [172.28.1.200]) by septima.ipfire.org (Postfix) with ESMTP id DEE8F61354 for <patchwork@ipfire.org>; Mon, 28 Dec 2015 00:57:44 +0100 (CET) Received: from hedwig.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 8CE77CCB; Mon, 28 Dec 2015 00:57:44 +0100 (CET) Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=212.227.15.19; helo=mout.gmx.net; envelope-from=xaver4all@gmx.de; receiver=development@lists.ipfire.org Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPS id B7EC795F for <development@lists.ipfire.org>; Mon, 28 Dec 2015 00:57:41 +0100 (CET) Received: from [192.168.1.101] ([188.194.76.135]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MCLQ1-1aMNjZ2eIr-0095Hu for <development@lists.ipfire.org>; Mon, 28 Dec 2015 00:57:40 +0100 Subject: [PATCH] Add RAM-only Proxy functionality - Bug Report #10592 To: development@lists.ipfire.org References: <1451172013-18852-1-git-send-email-matthias.fischer@ipfire.org> From: Xaver4all <xaver4all@gmx.de> X-Enigmail-Draft-Status: N1110 Message-ID: <56807AF3.3000109@gmx.de> Date: Mon, 28 Dec 2015 00:57:39 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <1451172013-18852-1-git-send-email-matthias.fischer@ipfire.org> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:s0IS1a1Jm0PgzYfMy0N1RLsdGsv4K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: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Message
Xaver4all
Dec. 28, 2015, 10:57 a.m. UTC
Squiddoesn't use RAM only for caching, if you set cachesize for disk
usage =0 andmemory cachesize >0 in GUI.
Now if you set "cache_size"=0 and "cache_mem">0,caching won't be
disabled completely ("cache deny all").
If you want todisable caching completely you must set "cache_size"=0 and
"cache_mem"=0.
Besides this "maximum_object_size_in_memory" will be set to 512KB.
Originally reported by qiller in Bugtracker form over one year. I just
created the diff an tested this on my IP-Fire.
Especially for the announced 64 Bit version of IP-Fire, where Squid can
handel more RAM, this may be useful.
Reported-by: qiller
Signed-off-by: Kim Wölfel <xaver4all@gmx.de>
---
html/cgi-bin/proxy.cgi | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
@@ -3270,7 +3270,12 @@ cache_dir aufs /var/log/cache
$proxysettings{'CACHE_SIZE'} $proxysettings{'L1_DI
END
;
} else {
- print FILE "cache deny all\n\n";
+ if ($proxysettings{'CACHE_MEM'} > 0)
+ {
+ print FILE "maximum_object_size_in_memory 512 KB\n\n";
+ } else {
+ print FILE "cache deny all\n\n";
+ }
}
print FILE <<END