Koozali.org: home of the SME Server

Clear Current Squid Log files

matt001

Clear Current Squid Log files
« on: March 26, 2005, 12:29:14 PM »
Hi

I want to know an easy way that I can start with clear Squid log files with nothing in them. I have Contribs.org SME Server 6.0.1. Want to be able to do it about once a week. I wan to clear all the contents in the current log files.

access.log
cache.log
store.log

Matthew

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Clear Current Squid Log files
« Reply #1 on: March 26, 2005, 10:02:05 PM »
Quote from: "matt001"

I want to know an easy way that I can start with clear Squid log files with nothing in them.


I can't think why you'd want that. But to do it, you'll need to shut down squid, delete the files, and start it up again.

mbachmann

Clear Current Squid Log files
« Reply #2 on: March 29, 2005, 11:25:52 AM »
Or you can try e-smith-squid cache mgt-0.2-1.noarch.rpm from MasterSleepy at http://www.vanhees.cc/index.php. It adds a server panel where you can erase or flush the squid cache.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Clear Current Squid Log files
« Reply #3 on: March 29, 2005, 05:03:12 PM »
Quote from: "mbachmann"
Or you can try e-smith-squid cache mgt-0.2-1.noarch.rpm from MasterSleepy at http://www.vanhees.cc/index.php. It adds a server panel where you can erase or flush the squid cache.


But that's not the same as restarting the log files.

Beware! If you pay per MB for bandwidth, flushing the squid cache can cost you significant $$. And it will definitely slow your web browsing experience. HTTP is designed to cache correctly. If you ever need to bypass the cache, you can do it using the right key combination for your browser. There is really no need to ever flush the squid cache.

mbachmann

Clear Current Squid Log files
« Reply #4 on: March 30, 2005, 11:38:40 AM »
Log files and cache are indeed diffrent items.

On diffrent occasions i had to clear the squid cache. Squid was not cooperative in reloading newer versions of  flash animations or updated pages. Clearing the local machines cache was no help.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Clear Current Squid Log files
« Reply #5 on: March 30, 2005, 05:41:53 PM »
Quote from: "mbachmann"

On diffrent occasions i had to clear the squid cache. Squid was not cooperative in reloading newer versions of  flash animations or updated pages.


Were you using the appropriate (browser specific) key presses to request that the cache be bypassed? I think it's ctrl-F5 for IE, shift-ctrl R for mozilla/netscape.

If you were using the correct keypresses, then that would mean there is a bug in squid, so you should report it to the bug tracker. We'd need to collect network traces to investigate.

Caches shouldn't need to be cleared - they should work correctly.