Hannes Lau <[EMAIL PROTECTED]> wrote:
> A good friend works with debain 2.2r2 or 3 (i dont know the
> exact number in the moment) and wwwoffle 2.5c. He has a
> question and i can not give a answer. He like it, that wwwoffle
> a various numbers of sites/urls not/never purge. Also he like
> it, that wwwoffle purge the rest of sites/urls in the cache
> only, when the maximum cache-size is catch. He must edit the
> wwwoffle.conf, but why? Can anyone me give a hint?
I understand your wish as one of wanting to be able to keep
entire domains as well as single urls in the cache.
Here is an excerpt from my wwwoffle.conf to show you how to do
it:
------------------------
max-size = 0
min-free = 0
use-url = yes
del-dontget = yes
del-dontcache = yes
# Purge files to keep the cache below 100 MB
# max-size = 100
<http://www-106.ibm.com/*> age = -1
<http://www.dr.dk/halmhuset/*> age = -1
<http://www.tuxedo.org/~esr/jargon/jargon.html> age = -1
<http://*> age = 0
<https://*> age = 0
<ftp://*> age = 0
<*://*/> age = 0
--------------------------
As you can see from the example you're able to target entire
domains as well as individual pages for keeping. If you run
'wwwoffle -purge' with this setup then everything in the cache
will get purged except all pages under the www-106.ibm.com
domain as well as all pages under the directory "halmhuset" in
the domain www.dr.dk domain and the individual page
jargon.html. If furthermore you uncomment "max-size" then the
cache will be kept below e.g. 100 mb.
I like this setup because it gives me an opportunity to keep a
highly customized cache of documents that are important to me.
Back up your cache before trying it out please.
Regards,
Morten
--
"Let's face it, life is mainly wasted time." (John Berryman)