This script is to help the developer purge Varnish cache.
- Python 2.7
- To purge a single path run:
python varnishPurge.py - Enter the information you are being asked.
- Edit varnishSteppedPurge.py , and edit the list called listPurgeDirs .
- Add or remove the paths you want to flush in sequence. By default, it will purge one directory per hour.
- Run the script with
python varnishSteppedPurge.py - Enter the information you are being asked.
It is very important NOT to flush the entire Varnish cache for a very large/high traffic web site, since this could potentially bring the site down.