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

From: Eliezer Croitoru <eliezer_at_ngtech.co.il>
Date: Fri, 14 Mar 2014 10:36:09 +0200

On 13/03/2014 22:21, Amos Jeffries wrote:

Adding a domain or acl test for internal squid StoreID feature to allow
it run faster but with a patch to the sources.

I was thinking about adding the code to the StoreID reply section on a
ERR case while another flag is being used to allow this option and note
that it will not work when using an external helper.

What do we think about an ides with this effect?
What exists inside squid code that can help me work with regex
extraction and match stuff?
maybe use an acl like code?

how a about reading the perl DB into squid internals?
pointers are welcome.

Eliezer

> 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
Received on Fri Mar 14 2014 - 08:36:19 MDT

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