Re: [squid-users] help me

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 24 Aug 2004 08:40:38 +0200 (CEST)

On Tue, 24 Aug 2004, Aanandh P C wrote:

> I am working on Squid to reduce the resolutions of the cached JPEG objects.
>
> For that i am getting the informations (dirn ,swapfilen) of the cached
> file while invoking storeSwapOutFileClosed() method.

Yes, but this is not the correct place to hook in such function.

You need to modify Squid to invoke your program to do the recoding, using
the store client functions and finally spooling the recoded object into a
new cache entry using the store functions within Squid.

> I am directly read the file from ufs.and compressing it by reducing it's
> resolution then modifying the squid object header (like content-length)
> but i can't understand how squid is calculating the MD5 sum of the
> object, and what r the other storeEntries i want to change .to validate
> the new object.

This is kept in memory.

Regards
Henrik
Received on Tue Aug 24 2004 - 00:40:40 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:02 MDT