Em 18-11-2009 12:16, Melanie Pfefer escreveu:
hi
I have in squid.conf
cache_dir ufs /var/squid/var/cache 100 16 256
I would like to know:
1. if the squid cache is stored on disk or RAM
2. if I can reach a point where "cache is full"
3. How can I "remove cache" older than 1 week (same logic as log rotation)
thanks in advance
1. Both. This line is about the cache stored on disk, but the squid also
has a cache on memory, that you can set in a line like "cache_mem 128 MB"
2. I did not understand... what?
3. Your old cache is removed by the refresh pattern.
Look this:
refresh_pattern -i \.jpg$ 10080 90% 10080
It means that every file ending with "jpg" will stay on the cache 1 week
(10080 minutes).
(Sorry by me english... I'm brazilian...)