Re: Child caches do not cache parent cache output? (bug?)

From: Jordan Mendelson <[email protected]>
Date: Mon, 30 Nov 1998 10:18:06 -0500 (EST)

On Sun, 29 Nov 1998, Henrik Nordstrom wrote:

> Jordan Mendelson wrote:
>
> > refresh_pattern . 0 20% 4320
> > refresh_pattern ^http://www.56k.com/ 3600 20% 4300
> > refresh_pattern ^http://slashdot.wolfe.net/ 3600 20% 4300
>
> The last two lines is never used. "." matches everything and the search
> is terminated. Move the "." refresh pattern to last in your list and
> things should work better.
>
> Rule of thumb: Most specific patterns should be first in the list.
>
> Checking refresh patterns by pushing reload is not a very good approach.
> Reload forces Squid to ignore any previously cached object... Instead
> use the client command delivered with Squid, or any other HTTP client
> without a local cache.

Good point..

Cachemgr reports the patterns:

refresh_pattern ^http://www.56k.com/ 3600 20% 4300
refresh_pattern ^http://slashdot.wolfe.net/ 3600 20% 4300
refresh_pattern . 0 20% 4320

Using client:

# bin/client -s -r localhost -p 3128 http://slashdot.wolfe.net
/images/topics/topichumor.gif

# bin/client -s -r localhost -p 3128 http://slashdot.wolfe.net
/images/topics/topichumor.gif

912438724.481 811 127.0.0.1 TCP_MISS/200 1765 GET
http://slashdot.wolfe.net/images/topics/topichumor.gif -
CACHE_DIGEST_HIT/rtp.cache.nlanr.net image/gif

912438724.736 224 127.0.0.1 TCP_MISS/200 1765 GET
http://slashdot.wolfe.net/images/topics/topichumor.gif -
CACHE_DIGEST_HIT/rtp.cache.nlanr.net image/gif

It still looks like it's fetching from the parent instead of it's own
cache.

Jordan

--
Jordan Mendelson     : http://jordy.wserv.com
Web Services, Inc.   : http://www.wserv.com
Received on Mon Nov 30 1998 - 08:37:34 MST

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