Re: [squid-users] not caching enough

From: Matus UHLAR - fantomas <uhlar_at_fantomas.sk>
Date: Mon, 5 Oct 2009 08:47:56 +0200

On 29.09.09 02:20, tookers wrote:
> Why not make use of some of your RAM for cache_mem? It will make requests
> for smaller, more frequently requested files a hell of a lot quicker, and it
> should give you a better hit ratio.

mostly because we weren't sure if his RAM will be enough for the cache
index...
 
> # 3GB process size limit in 32bit, so don't set higher than 1 GB for a very
> busy cache
> cache_mem 512 MB
> maximum_object_size_in_memory 2048 KB

I would set those lower, maybue 128M/128K

> A few refresh_patterns to get images and other static content in cache for
> longer:-
>
> refresh_pattern \.jpg$ 3600 50% 60 ignore-reload
> refresh_pattern \.gif$ 3600 50% 60 ignore-reload
> refresh_pattern \.css$ 3600 50% 60 ignore-reload
> refresh_pattern \.js$ 3600 50% 60 ignore-reload
>
> # Cache all html for 5 minutes
> refresh_pattern \.html$ 300 50% 10 ignore-reload

ignore-reload may cause problems for clients. I strongly discourage using
that. Better skip those refresh_patterns, for now se can use defaults.

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
(R)etry, (A)bort, (C)ancer
Received on Mon Oct 05 2009 - 06:48:01 MDT

This archive was generated by hypermail 2.2.0 : Mon Oct 05 2009 - 12:00:02 MDT