Giter Site home page Giter Site logo

cache-warmer's Introduction

Discontinued use github.com/atomicptr/crab instead

Since I started using this tool for much more than cache warming (e.g. testing if urls are still working), I've decided to discontinue this tool in favor of a new one called crab.

Crab has every feature this one has and more.

Basic Usage with Docker

$ docker run --rm atomicptr/crab crawl:sitemap https://domain.com/sitemap.xml

cache-warmer

Simple cache warmer which reads a sitemap.xml and requests all URLs within it.

Usage

Usage: cache-warmer [options] [arguments]

OPTIONS
    --provider/$CW_PROVIDER  <string>  (required)
    How should the tool query requests?

    --path/$CW_PATH  <string>  (required)
    Path to the URL list or Path/URL to the sitemap.xml

    --cookies/$CW_COOKIES  <string>,[string...]
    Cookies to add to the request

    --headers/$CW_HEADERS  <string>,[string...]
    Headers to add to the request

    --prefix-url/$CW_PREFIX_URL  <string>
    Prefix an URL or replace the URL altogether

    --http-client-timeout/$CW_HTTP_CLIENT_TIMEOUT  <duration>  (default: 30s)

    --number-of-workers/$CW_NUMBER_OF_WORKERS      <int>       (default: 32)

    --help/-h
    display this help message

Basic usage with Docker

$ docker run --rm \
    -e CW_PROVIDER=sitemap \
    -e CW_PATH="https://example.com/sitemap.xml" \
    atomicptr/cache-warmer

Basic usage with executable

$ ./cache-warmer --provider=sitemap --path=https://example.com/sitemap.xml

License

MIT

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.