Re: [squid-users] ACLs

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 31 Jul 2003 22:38:38 +0200

On Thursday 31 July 2003 21.08, Fernando Maior wrote:

> acl blacklist url_regex -i "/etc/squid/block/blacklist1"
> acl blacklist url_regex -i "/etc/squid/block/blacklist2"
>
> Does squid search each file, in the order above,
> trying to match the request? Or it reads the files
> once at startup and make the search in a memory
> hash, and only rereads the files if we command a
> -k reload to it?

It loads the files while parsing the configuration file. As regex
patterns can not be sorted or hashed it stores them in a linear list
in memory.

> 2)
> Is there any setup on squid.conf that makes the searches
> above faster? More memory for some kind of anything?

Yes, by using the proper acl types instead of the regex based acls.
This is why there is more than only url_regex..

Regards
Henrik

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org
If you need commercial Squid support or cost effective Squid or
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, info@marasystems.com
Received on Thu Jul 31 2003 - 14:39:03 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:18:23 MST