
▶ BLOG
KB 2535: CLEAR THE HTTP PROXY CACHE
How to clear the HTTP proxy cache. This operation can help resolve performance issues or refresh the information stored in the cache.
Objective
Clear the HTTP proxy cache (Squid).
Background
Due to various issues, particularly performance issues, it may be useful to clear the cache of an HTTP proxy. This operation may take a few minutes.
Steps
WARNING: THIS PROCEDURE WILL DISRUPT INTERNET CONNECTIVITY THROUGH THE PROXY DURING THE OPERATION.
The procedure must be performed on all members of an Olfeo cluster sharing web traffic. To clear the Squid cache depending on the Olfeo server version:
If Olfeo is a virtual machine (VM), first enter the Olfeo environment:
chroot /opt/olfeo/chroot
In version 6 of Olfeo
- Stop the proxy: /etc/init.d/squid stop
- Clear the cache: rm -rf /opt/olfeo/data/proxy/cache/*
- Reset the cache: squid -z
- Start the proxy: /etc/init.d/squid start