Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mistralol/nginx-cache-purge
Commandline tool to purge cached urls from nginx
https://github.com/mistralol/nginx-cache-purge
cache nginx nginx-cache-purge purge sitemap
Last synced: 17 days ago
JSON representation
Commandline tool to purge cached urls from nginx
- Host: GitHub
- URL: https://github.com/mistralol/nginx-cache-purge
- Owner: mistralol
- Created: 2017-05-03T17:32:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-27T10:44:57.000Z (over 5 years ago)
- Last Synced: 2024-10-15T20:17:25.193Z (about 1 month ago)
- Topics: cache, nginx, nginx-cache-purge, purge, sitemap
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nginx-cache-purge
* Gets a list of urls from one or more sitemaps.
* Send a PURGE request to list url's found# Install / Running
## From npm
1. npm install -g nginx-cache-purge
2. nginx-cache-purge http://www.example.com/sitemap.xml## Run from git clone
1. git clone https://github.com/mistralol/nginx-cache-purge
2. cd nginx-cache-purge && npm install
3. node index.js http://www.example.com/sitemap.xml## Server configuration
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.
# TODO List
* Needs support for more input formats
1. stdin
2. json format
3. other xml formats
* Needs limited pipelined request support aka run multiple concurrent requests
* Stats etc...
* Better error reportingFor bugs / ideas please use the issue list on github
# Credits
Original Author: James Stevenson
E-Mail: [email protected]
BLOG: https://www.stev.org