Re: [squid-users] How to get the size of incoming document in cache replacement

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 19 Feb 2005 16:27:15 +0100 (CET)

This question belongs on squid-dev rather than squid-users..

On Thu, 17 Feb 2005, Yuan Chen wrote:

> I'm working on implementing a variation of squid's cache replacement
> policy. My replacement algorithm needs to know the size of an incoming
> document.

See the heap policies for examples.

   store_entry->swap_file_sz

> How can I get the size of an incoming document when the purge
> walker is called?

Eh? The purke walker does not know of incoming documents, it only knows
about "old" objects to purge from the cache according to your policy..

Regards
Henrik
Received on Sat Feb 19 2005 - 08:27:17 MST

This archive was generated by hypermail pre-2.1.9 : Fri Feb 25 2005 - 12:00:03 MST