[squid-users] Deleting UFS cache files directly
With UFS, is it possible to manually delete cache files without causing problems? If so, is there any action that should be taken to have squid pick-up the changes? What I was thinking of doing is periodically running something like: find /usr/local/squid/cache/?? -type f -atime +2d -size +2M -delete to remove large files. Alternately is there a utility that can do this kind of thing?
Re: [squid-users] Deleting UFS cache files directly
With UFS, is it possible to manually delete cache files without causing problems? If so, is there any action that should be taken to have squid pick-up the changes? What I was thinking of doing is periodically running something like: find /usr/local/squid/cache/?? -type f -atime +2d -size +2M -delete to remove large files. Alternately is there a utility that can do this kind of thing? cachemgr.cgi and squidclient are provided along with the squid installation to assist with things like this. Amos
Re: [squid-users] Deleting UFS cache files directly
On sön, 2007-07-22 at 21:25 +0100, RW wrote: With UFS, is it possible to manually delete cache files without causing problems? If so, is there any action that should be taken to have squid pick-up the changes? What I was thinking of doing is periodically running something like: find /usr/local/squid/cache/?? -type f -atime +2d -size +2M -delete to remove large files. Alternately is there a utility that can do this kind of thing? Why do you want to do this? Squid maintains the cache automatically.. From your description it sounds like you might want to look into using the heap GDSF replacement policy. If you really want to delete stuff manually then look into using the purge utility (see related software). Regards Henrik signature.asc Description: This is a digitally signed message part