KB 2535: CLEAR HTTP PROXY CACHE
Published November 28, 2023Amended July 19, 2024
How to clear the HTTP proxy cache. This operation can help resolve performance problems or refresh information in the cache.
Objective
Clear HTTP proxy cache (Squid).
Context
Following a number of problems, particularly performance problems, it can be useful to purge the cache of an HTTP proxy. This operation may take a few minutes.
Steps
WARNING: THIS OPERATION WILL STOP INTERNET CONNECTIVITY THROUGH THE PROXY FOR THE DURATION OF THE OPERATION.
This procedure must be carried out on all members of an Olfeo cluster sharing web traffic. To clear the Squid cache depending on the Olfeo server version :
If the Olfeo is a virtual machine (VM), first enter the Olfeo environment:
chroot /opt/olfeo/chroot
In Olfeo version 6
- Stop the proxy: /etc/init.d/squid stop
- Empty cache: rm -rf /opt/olfeo/data/proxy/cache/*
- Reset cache: squid -z
- Start the proxy: /etc/init.d/squid start