On tis, 2008-09-23 at 14:57 +0800, Adrian Chadd wrote:
> >> You can limit the amount of cache_mem which limits the memory cache
> >> size; you could probably modify the squid codebase to start purging
> >> objects at a certain object count rather than based on the disk+memory
> >> storage size. That wouldn't be difficult.
> >
> > Any chance of having patches that do this?
>
> I could probably do that in a week or so once I've finished my upcoming travel.
> Someone could try beating me to it..
The relevant code locations for implementing this if you want to take a
stab at it yourself is the maintain function in each cache_dir type
(src/fs/*/store_dir_...)
Should be trivial to add a cache_dir parameter specifyung the max number
of files in this cache_dir, and use this in the maintenance function.
Regards
Henrik
This archive was generated by hypermail 2.2.0 : Wed Sep 24 2008 - 12:00:06 MDT