Yee Man Chan wrote:
>
> I don't see any LRU code in It only removes
> expired objects. Moreover, it calls storeGetSwapSpace(0) at the end. So,
> where is the LRU?
It is there (storeMaintainSwapSpace.). The expire date is calculated
both as object life time and last reference. See storeCheckExpired.
In storeMaintainSwapSpace a object is regarded as expired if:
1. The object lifetime has expired
2. The object has not been accessed within the LRU max age. LRU max age
is based on reference_age in squid.conf, and how close to cache_swap_max
your cache is.
--- Henrik Nordström Sparetime Squid HackerReceived on Wed Mar 04 1998 - 14:27:56 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:39:09 MST