Thursday 11 January 2007 11:23:00 am
Squid keeps an item in the cache until it has expired. There are three things that can expire a cached object:
To force cache clearing of a specific item you can use the squidclient command line tool as shown below.
squidclient -m PURGE 'URL'
When testing Squid, remember that browsers send no-cache headers when the reload button is clicked. The cache has thus expired. For proper testing, you should use a benchmarking tool such as ApacheBench or Siege.