Weblog entry #5 for naldy

squid cache
Posted by naldy on Mon 25 Sep 2006 at 10:23
Tags: none.
I allocate my /dev/hda2 ( 20 GB ) as cache of my squid.
Now it has been use 90%. Should I clean it?
Or just leave it? What is the syntax to clean up partition?

 

Comments on this Entry

Posted by Steve (80.68.xx.xx) on Mon 25 Sep 2006 at 13:00
[ Send Message | View Steve's Scratchpad | View Weblogs ]

See the Squid FAQ - basically stop it, remove the cache directories, and restart it.

Steve

[ Parent | Reply to this comment ]

Posted by simonw (84.45.xx.xx) on Mon 25 Sep 2006 at 21:35
[ Send Message | View Weblogs ]
...which is the procedure to clear the cache.

Basically you only do that if it is serving stale data, or is confused in some way.

If it is working, Squid will throw out the old stuff itself, and cache new stuff. It will write a log file message every now and then when it goes a little over the allocated space (which logcheck lovingly emails to me when it happens), which can be safely ignored.

Squid works best if you don't fiddle with it. The exception being make sure it is caching BIG files, so that you get all your Debian updates caches locally, and any other crucial updates like Firefox releases. But I guess you did this already if you have 20GB cached.


[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search