Re: [squid-users] Re: Automatic StoreID ?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 14 Mar 2014 22:36:44 +1300

On 14/03/2014 9:20 p.m., Omid Kosari wrote:
> Amos Jeffries-2 wrote
>> You just described how Store-ID feature works today.
>>
>> The map of urlA == urlB == urlC is inside the helper. You can make it a
>> static list of regex patterns like the original Squid-2 helpers, a DB
>> text file of patterns like the bundled Squid-3 helper, or anything else
>> you like inside the helper.
>> Squid learns the mappings by asking the helper about each URL. There is
>> a helper response cache on these lookups same as other helpers and
>> prevent complex/slow mappings having much impact on hot objects.
>>
>> Amos
>
> Really ? Squid has it's own learning mechanism without need human hand ?
> Also it can GUESS new urls which it was not aware till now ?

You did not describe any learning mechanism. Just stated the parts Squid
already does: when three URL are known by the helper to be identical the
first fetch for any one of them causes that object to be cached, then
later reuqests for any of them use that cached version. urlB/urlC need
not have been fetched at all.

Squid just asks the helper for information about each URL, the helper
could be made to contain any learning mechanism you want.
 The ones bundled with Squid leverage human knowledge in the form of
database list of patterns.

In short. It is ready for you to figure out how that learning should be
done and make a helper to do it.

>
> One more question . Squid will delete current duplicate objects ?
>

Squid does lazy deletion. It deletes just before re-using the cache
position for another file, or when needing to free up space.

Amos
Received on Fri Mar 14 2014 - 09:36:54 MDT

This archive was generated by hypermail 2.2.0 : Fri Mar 14 2014 - 12:00:04 MDT