Search squid archive

Re: questions on squid cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry, replied incorrectly. Message below.

---------- Forwarded message ----------
From: Brian Mearns <mearns.b@xxxxxxxxx>
Date: Wed, Nov 18, 2009 at 10:23 AM
Subject: Re:  questions on squid cache
To: Jefferson Diego <jeffersondiego8@xxxxxxxxxxx>


On Wed, Nov 18, 2009 at 9:56 AM, Jefferson Diego
<jeffersondiego8@xxxxxxxxxxx> 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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux