Re: Cache hit ratio?

From: Ed Knowles <>
Date: Tue, 25 Feb 1997 14:11:46 -0400

G'day Merv!

Is this the order you have them in squid.conf?

Squid will take the first refresh_pattern that it matches ... so the protocol
things should be last. You don't need a cgi-bin entry if you have it in
cache_deny. The '.' pattern matches everything, and you also have that before
your specific type patterns.

As most lines are the same, I would use a '.' refresh_pattern, as it will
drastically reduce the number of checks ... even though most if your objects
will be caught by the first refresh_pattern as you currently have it.

Given what you have posted, you may be just as well off with:

refresh_pattern . 240 50% 43200

though a specific refresh for gif and jpeg may be a good idea, as one assumes
they remain unchanged longer than html.

Even more HIT's can be gained by using a redirector for popular large objects.


Ed Knowles aka Jasper				   Phone : +61 2 9385 4962
E-mail:	           Fax   : +61 2 9313 7878
            What I lack in morals I make up for in principles.
Received on Mon Feb 24 1997 - 19:32:44 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:34:32 MST