Search squid archive

RE: [squid-users] Problem in understanding squid refresh algorithm...

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

 



 
> 
> As I wrote in another post I've got problem with my version 
> of squid. It
> seems like it doesn't want to cache anything until I set up
> refresh_pattern  with very high values, something like:
> 
> refresh_pattern . 35000000 100% 35000000
> 
> I don't know if it's my fault, I mean, maybe there's 
> something wrong in
> my squid.conf (I've even tried to post it here, but I got no
> response...)
> 
> Anyway, I don't really understand that well how squid decide what is
> fresh (thus it can keep it in cache) or stale (therefore something to
> purge).
> Reading squid.conf.default I can read:
> 
> Basically a cached object is:
> #
> #               FRESH if expires < now, else STALE
> #               STALE if age > max
> #               FRESH if lm-factor < percent, else STALE
> #               FRESH if age < min
> #               else STALE
> 
> Here comes the question: how can any object be considered 
> fresh when its
> expiry time is < than actual time?!?!? If it's already expired how can
> it be fresh!?!?  

 - Seriously you are nearly asking why |"@2 < @3"|, whereby those symbols
denote the mathematical concept of 2 and 3. That @2 thing alone
has been written books about to explain

 - Then you are asking the why about a definition. The definition defines
freshness and is there to avoud "WHY-NESS".
As long as expirty time and current time are absolute I see no problem and the '<'
operator always leads to true or false.

M.


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

  Powered by Linux