mån 2006-04-24 klockan 11:04 -0300 skrev wellington ricardo gasparin: > I want to read the body of a web page, this way I will create a vector > model of semantics. Through distance semantics it will tell which > objects will stay or will remain in cache. > It is to make a new policy replacement.
Then you probably should hook into StoreAppend. All data going into the object is seen here. But as always you only see a small fragment at a time, never the complete object. Please also note that Squid adds the object to the removal policy as soon as the HTTP headers is known, before the complete reply has been seen. So you also need to add a method whereby the information you have collected is communicated to the removal policy. The simplest would be to keep the information attached to the StoreEntry and to somehow extend the swap.state format with your data to have it preserved across restarts. Regards Henrik
signature.asc
Description: Detta är en digitalt signerad meddelandedel
