Re: Cache not being flushed

Henrik Frystyk Nielsen (frystyk@ptsun00.cern.ch)
Tue, 20 Sep 1994 23:49:18 +0200

Date: Tue, 20 Sep 1994 23:49:18 +0200
Message-Id: <9409202059.AA07001@ptsun03.cern.ch>
From: frystyk@ptsun00.cern.ch (Henrik Frystyk Nielsen)
To: Multiple recipients of list <www-proxy@www0.cern.ch>
Subject: Re: Cache not being flushed

It is normal that the cache grows beyond the limit set in the
configuration file as the directiry structure taks some space as well.
However, this can't justify your problem.

I think that the problem is the following lines:

> # Remove unwanted cached files at 3 am each day (garbage collection).
> Gc On
> GcDailyGc 3.00 <------

This is _not_ a valid time specification (which you can see when you
run the server in verbose mode). The format should be something like

GCdailyGC 3:00
----^

The server then defaults to not do any daily garbage collection at all
- which of course is not an optimal solution, and I will change this in
the next release.

-- cheers --

Henrik Frystyk
frystyk@dxcern.cern.ch
+ 41 22 767 8265
World-Wide Web Project,
CERN, CH-1211 Geneva 23,
Switzerland

> I'd be grateful to anyone who can help me with this problem. Our
> cache isn't being cleaned out and seems to continue growing beyond the
> limit I specified. Its now 639 MB. Is this a bug or have I merely
> configured it incorrectly. This is our httpd.conf file
>
>
> protection prot-proxy {
> serverid www.leeds.ac.uk
> mask @(129.11.*.*)
>
> }
>
> protect http:* prot-proxy
> protect gopher:* prot-proxy
> protect ftp:* prot-proxy
> protect wais:* prot-proxy
>
> pass http:*
> pass gopher:*
> pass ftp:*
> pass wais:*
>
> Exec /htbin/ucs/* /apps/WWW/cgi-bin/ucs/*
> Exec /htbin/bionet/* /apps/WWW/cgi-bin/bionet/*
> Exec /htbin/bmb/* /apps/WWW/cgi-bin/bmb/*
>
> map / file:/apps/WWW/homepage.html
> map /* file:/apps/WWW/*
> pass file:/apps/WWW/*
> fail *
>
> Caching On
> CacheRoot /usr/info/WWW_cache
> CacheSize 300
> CacheAccessLog /var/adm/httpd_cache.log
>
> # Delete files from cache after specified number of days
> CacheClean http:* 10 Days
> CacheClean gopher:* 10 Days
> CacheClean wais:* 10 Days
> CacheClean ftp:* 10 Days
>
> # Don't cache local files
> NoCaching http://www.leeds.ac.uk/*
>
> # If a file hasn't been accessed within the last specified number of
> days delete from cache
> CacheUnused * 5 days
> CacheUnused http://info.cern.ch/* 10 days
> CacheUnused http://www.ncsa.uiuc.edu/* 10 days
>
> # ensure dynamically changing documents are only kept for short
> periods
> # e.g. one modified 10 days ago will only last 1 day
> CacheLastModifiedFactor 0.1
>
> # Remove unwanted cached files at 3 am each day (garbage collection).
> Gc On
> GcDailyGc 3.00
>
> AddType .w3l application/x-w3launch 8bit