Code Monkey home page Code Monkey logo

nginx-cache-purge's Introduction

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 reporting

For bugs / ideas please use the issue list on github

Credits

Original Author: James Stevenson

E-Mail: [email protected]

BLOG: https://www.stev.org

nginx-cache-purge's People

Contributors

mistralol avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.