Description | Squid proxy: changing the caching object limit. |
---|---|
SME Version(s) | 7.0 |
Author | Taken from forums, original by pfloor: http://forums.contribs.org/viewtopic.php?t=31884 |
Squid is set by default to a max object size of 4MB. You can raise that limit to 20 MB (or whatever you want) by the following. Be warned that your squid cache may become very LARGE if you are not careful with this setting!
- Make a custom template directory if it doesn't exist:
# mkdir -p /etc/e-smith/templates-custom/etc/squid/squid.conf
- Place template fragment into temlplate directory:
# echo "maximum_object_size 20480 KB" > /etc/e-smith/templates-custom/etc/squid/squid.conf/20Maximum_object_size
- Expand the Template:
# /sbin/e-smith/expand-template /etc/squid/squid.conf
- Restart squid to enable new settings:
# /etc/rc7.d/S90squid restart
Another interesting item I have discovered at my office is that some of the XP machines here use the squid cache and others don't. I have not been able to figure why but I can force IE and Firefox to use the squid cache by setting them manually in their options.