Koozali.org: home of the SME Server

Proxy Cache Settings (Squid)

James Shields

Proxy Cache Settings (Squid)
« on: July 27, 2002, 03:30:19 PM »
I have recently set my workstations to use the proxy cache on my SME server. I am interested to find out the following:

1. What is the size of the cache (ie. How much disk space is allocated).
2. Is there any restrictions (ie, file type or file size) that can be in the cache.
3. How do I increase the disk space allocation for the cache.

Thanks for your help.

James

Simeon

Re: Proxy Cache Settings (Squid)
« Reply #1 on: July 29, 2002, 01:02:24 AM »
I am no expert but:

copy the contents of /etc/e-smith/templates/etc/squid/squid.conf
into
/etc/e-smith/templates-custom/etc/squid/squid.conf

[you'll probably have to create the directories from templates-custom downwards?]

then  edit in pico or vi the file /etc/e-smith/templates-custom/etc/squid/squid.conf

if you read through the comments in the file it explains it all pretty well.
i have modified the setting for squid cache on my server as follows:
cache_mem 250MB
cache_dir ufs /var/spool/squid 400 16 256

read through the comments and it'll explain what all that means.  i've been able to set a large amount of RAM for use by the squid cache as the computer has over 1gig of RAM (it is the gateway/proxy/cache for 230 computers).  

when you've modified the file to settings that you want then you need to expand the template as follows

/sbin/e-smith/expand-template /etc/squid/squid.conf

then restart squid
service squid restart

hope this is of some help.

darren

Re: Proxy Cache Settings (Squid)
« Reply #2 on: August 06, 2002, 06:24:20 AM »
which template did you edit i have sme 5.5 and there is no line anything like
cache_dir ufs /var/spool/squid 400 16 256

only thing i can find that looks similar is

store_avg_object_size 3 KB

cheers

Mr Bbp

Re: Proxy Cache Settings (Squid)
« Reply #3 on: August 08, 2002, 06:55:18 PM »
Hy Daren....

I'm not a super Hero on linux.
But i have nearly the same prob.
I'm web designer and test some pages. on local server (SME 5.5) there is no cache but when i've try on my ISP domain, seems there is a bloody cache.

So my question is simple, proxy on server is by default "ON" for internet page or is from my isp proxy?????

And the case which sme proxy prob.... how to switch OFF the proxy ???

by advance

many greats

Mr Bbp