Every now and then you run into a problem with a caching server that causes you to need to clear out the cache. If running Squid, you can look in the /etc/squid/squid.conf configuration file and find a setting in that file called the cache_dir, which is a path. For example, we’ll use /var/squid/cache in this article.
rm -Rf /var/squid/cache
Then recreate the cache directory:
Then run squid with a -z option:
Then fire up squid again: