Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Dean on April 01, 2001, 12:03:57 AM

Title: Please HELP to clear cache
Post by: Dean on April 01, 2001, 12:03:57 AM
Hi,

I needed to move "home.asp" page from the root folder of  my internet web-site and it is now in the "pages/.." folder.
However, when I enter http://xxx.yyy.zzz.com -  my browser tries to load the "home.asp" page as if it was still in the root of the site, and I get HTTP 404 "File not found" error message.
I asked a friend, and he can load my site without a problem.  From this I conclude, that my browser loads old files that are stuck in my E-smith's proxy cache. I restarted the e-smith server, but the problem didn't go away.
I know very little about linux,  - can someone help me and tell me how to clear the cache on e-smith?

Many thanks in advance,
Dean
Title: Re: Please HELP to clear cache
Post by: Lloyd keen on April 01, 2001, 01:35:46 AM
Try typing in the internal IP address of the server - if you still get the same error message then it is your friends cache that probably needs clearing. If you need to move the website then you should create a new i-bay and one of the options when creating the i-bay is to enable it as the primary website. Hope this helps.
Title: Re: Please HELP to clear cache
Post by: Dean on April 01, 2001, 03:45:19 PM
Hi Lloyd,

Thank you for responding to my query. Unfortunatelly, my description of the problem was misleading - the website is hosted on the Internet, not on E-smith box.
You were dead right though, when you suggested using IP address instead of domain name -the correct page now opens without a hitch.
However, this is a workaround, and my problem hasn't been resolved, and restarting doesn't help at all. It keeps sending me to a non-existing page :-(

- How to clear/delete all the files from cache in E-smith Linux?
- How to automate this "refreshing" process?

All and any help would be much appreciated
Title: Re: Please HELP to clear cache
Post by: Darrell May on April 02, 2001, 02:08:15 AM
Dean wrote:
> - How to clear/delete all the files from cache in E-smith
> Linux?
> - How to automate this "refreshing" process?
>
> All and any help would be much appreciated

Using Internet Explorer, CTRL-REFRESH does the job.  Meaning hold the ctrl key and click the refresh icon.

Darrell
Title: Re: Please HELP to clear cache
Post by: Dean on April 02, 2001, 05:33:23 PM
Darrell,

I know how to clear Explorer's cache under Windows - can somebody tell me how to do this for the E-smith's proxy server????
Title: Re: Please HELP to clear cache
Post by: Craig Foster on April 02, 2001, 07:29:12 PM
/etc/init.d/squid stop
rm /var/spool/suid
/etc/init.d/squid start

if you want it done with an air of finality :-)


Craig Foster
Title: Re: Please HELP to clear cache
Post by: Dean on April 02, 2001, 08:13:55 PM
Thanks, Craig!!

Just one last question
So, - if I simply restart the E-smith box, this doesn't clear the proxy cache, - right?

Does Squid know when to automatically truncate the files in its cache to avoid runnig out of disk space? Can tweak this setting?
Title: Re: Please HELP to clear cache
Post by: Darrell May on April 04, 2001, 06:44:05 AM
Dean wrote:
>
> Thanks, Craig!!
>
> Just one last question
> So, - if I simply restart the E-smith box, this doesn't clear
> the proxy cache, - right?
>
> Does Squid know when to automatically truncate the files in
> its cache to avoid runnig out of disk space? Can tweak this
> setting?

Craig, this is the way mentioned in a FAQ on www.squid-cache.org to do it.

First of all, you must stop Squid of course. You can use the command:
   squid -k shutdown

The fastest way to restart with an entirely clean cache is to over write the swap.state file. Note, you can not just remove the swap.state file, or truncate it to zero size. Instead, you should put just one byte of garbage there. For example:

   echo "" > /var/spool/squid/swap.state

Restart squid:

   squid