On Fri, 31 Dec 1999, S.Toms wrote:
On Fri, 31 Dec 1999, Darren R. Weber wrote:
dw> On Fri, 31 Dec 1999, Nick wrote: dw> > "Paul W. Abrahams" wrote: dw> > > dw> > > I'm running Netscape 4.7 under SuSE 6.2. I discovered that the dw> > > ~/.netscape/cache directory contained over 50MB of cache files, even dw> > > though the disk cache size under Edit / Preferences/ Advanced / Cache dw> > > was set at 5000 KB. Moreover, pressing the Clear Disk Cache button dw> > > didn't clear out the contents of that directory. I manually deleted dw> > > all the files within the directory (though not the directory itself) dw> > > with no ill effects so far -- except that Netscape seems to load dw> > > faster. dw> > > dw> > > Is there a way to prevent that cache from getting so big, or to clear dw> > > it from within Netscape? dw> > dw> > dw> > I posted the same basic thing last month-( I've upgraded to 4.71 will dw> > see if that helps but for now rm -rf * is my friend. dw> > dw> > Nick dw> dw> I hadn't noticed a problem until I saw your post. I checked my cache and it dw> was up to 22MB I have it set to 1MB. Thanks for the heads up. I wrote a dw> script and set a cron job to clear it out weekly. dw>
Something like the following
0 0 * * * find ~/.netscape/cache -type f -atime +5 -exec rm -f {} \;
Or did you do it a different way?
Nope mine was much more basic. :-) #!/bin/sh rm -rf /home/darren/.netscape/cache/* I didn't bother to check if anything was there or do any sort of search just a simple wipe of the directory. I put it in my personal bin directory and set a cron job: 5 3 * * 0 /home/darren/bin/nsclrcache I like to pick odd hours to offset the system stuff as you see with the 3:05 am time. I think your setup would work, but I just kept it simple. Being newyears I hope this makes sense. . .I had way to much to drink and I'm having trouble typing. :-) -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Darren R. Weber drw@linuxfan.com ICQ# 2849193 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/