https://github.com/drunomics/sitemap-cache-warmer
A simple cache warmer, that reads the sitemap.xml file(s) and warms all URLs.
https://github.com/drunomics/sitemap-cache-warmer
Last synced: about 2 months ago
JSON representation
A simple cache warmer, that reads the sitemap.xml file(s) and warms all URLs.
- Host: GitHub
- URL: https://github.com/drunomics/sitemap-cache-warmer
- Owner: drunomics
- Created: 2018-07-26T15:50:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-12-16T07:55:27.000Z (6 months ago)
- Last Synced: 2026-02-04T08:20:00.350Z (4 months ago)
- Language: PHP
- Size: 29.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# drunomics Sitemap CacheWarmer
A simple cache warmer, that reads the sitemap.xml file(s) and warms all URLs.
The cache warmer is intended for CLI usage and outputs useful timing and
HTTP status code information.
## Installation
git clone git@github.com:drunomics/sitemap-cache-warmer.git
cd sitemap-cache-warmer
composer install
## Usage
Usage may vary based upon your configuration. With the default configuration
the following usage is supported:
php run.php https://drunomics.com
Alternatively the URL may be provided via the `PHAPP_BASE_URL` environment
variable.
### HTTP authentication
Optionally, HTTP authentication is provided based upon the environment variables
`HTTP_AUTH_USER` and `HTTP_USER_PASSWORD`.
Example:
HTTP_AUTH_USER=user HTTP_AUTH_PASSWORD='password' php run.php https://example.com
## Configuration
All Guzzle requestion options can be controlled from config.
Just copy config.inc.php.dist to config.inc.php and changed its content.