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

Reply via email to