- Gets a list of urls from one or more sitemaps.
- Send a PURGE request to list url's found
- npm install -g nginx-cache-purge
- nginx-cache-purge http://www.example.com/sitemap.xml
- git clone https://github.com/mistralol/nginx-cache-purge
- cd nginx-cache-purge && npm install
- node index.js http://www.example.com/sitemap.xml
In order for this to work properly nginx must have the proxy_cache_purge configured correctly. If it does not then this program will not be able to purge the cache. Typical system like debian / ubuntu have this by default when using the nginx-extras package. It has not currently been tested with any other type of server.
- Needs support for more input formats
- stdin
- json format
- other xml formats
- Needs limited pipelined request support aka run multiple concurrent requests
- Stats etc...
- Better error reporting
For bugs / ideas please use the issue list on github
Original Author: James Stevenson
E-Mail: [email protected]
BLOG: https://www.stev.org