Re: [squid-users] questions on squid cache

From: Brian Mearns <mearns.b_at_gmail.com>
Date: Wed, 18 Nov 2009 11:41:49 -0500

Sorry, replied incorrectly. Message below.

---------- Forwarded message ----------
From: Brian Mearns <mearns.b_at_gmail.com>
Date: Wed, Nov 18, 2009 at 10:23 AM
Subject: Re: [squid-users] questions on squid cache
To: Jefferson Diego <jeffersondiego8_at_hotmail.com>

On Wed, Nov 18, 2009 at 9:56 AM, Jefferson Diego
<jeffersondiego8_at_hotmail.com> wrote:
> 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...)
>

2. I believe squid will simply discard entries according to some
heuristic once it has reached capacity. That's the general idea behind
any cache, remove items that are least likely to be needed again in
order to make room for items that are needed now.

-Brian

--
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://keys.gnupg.net
-- 
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://keys.gnupg.net
Received on Wed Nov 18 2009 - 16:42:18 MST

This archive was generated by hypermail 2.2.0 : Wed Nov 18 2009 - 12:00:04 MST