eliashaeussler / cache-warmup
Composer package to warm up website caches, based on a given XML sitemap
Installs: 85 654
Dependents: 1
Suggesters: 0
Security: 0
Stars: 39
Watchers: 3
Forks: 8
Open Issues: 2
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0
- composer-runtime-api: ^2.1
- ext-filter: *
- ext-json: *
- ext-mbstring: *
- ext-zlib: *
- cuyz/valinor: ^1.3
- guzzlehttp/guzzle: ^7.0
- guzzlehttp/promises: ^1.0 || ^2.0
- guzzlehttp/psr7: ^2.0
- mtownsend/xml-to-array: ^2.0
- psr/http-message: ^1.0 || ^2.0
- psr/log: ^2.0 || ^3.0
- symfony/console: ^5.4 || ^6.0 || ^7.0
- symfony/filesystem: ^5.4 || ^6.0 || ^7.0
- symfony/options-resolver: ^5.4 || ^6.0 || ^7.0
- symfony/yaml: ^5.4 || ^6.0 || ^7.0
Requires (Dev)
- armin/editorconfig-cli: ^1.8 || ^2.0
- eliashaeussler/php-cs-fixer-config: ^2.0
- eliashaeussler/phpstan-config: ^2.0
- eliashaeussler/rector-config: ^3.0
- eliashaeussler/transient-logger: ^1.0
- ergebnis/composer-normalize: ^2.28
- phpstan/extension-installer: ^1.2
- phpstan/phpstan-phpunit: ^1.1
- phpstan/phpstan-symfony: ^1.2.11
- phpunit/phpunit: ^10.1 || ^11.0
- dev-main
- 3.0.1
- 3.0.0
- 2.7.1
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.2
- 2.0.1
- 2.0.0
- 1.3.1
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 0.8.x-dev
- 0.8.6
- 0.8.5
- 0.8.4
- 0.8.3
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.13
- 0.7.12
- 0.7.11
- 0.7.10
- 0.7.9
- 0.7.8
- 0.7.7
- 0.7.6
- 0.7.5
- 0.7.4
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.4
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.1
- 0.5.0
- 0.4.1
- 0.4.0
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-docs/blob-urls
- dev-renovate/vitepress-1.x-lockfile
- dev-task/results
- dev-renovate/lock-file-maintenance
- dev-renovate/phpstan-packages
This package is auto-updated.
Last update: 2024-04-18 20:53:01 UTC
README
Cache Warmup
A library to warm up website caches of URLs located in XML sitemaps. It is written in PHP and was first released back in 2020.
Cache warmup is performed by concurrently sending simple HEAD requests to those URLs, either from the command line or by using the provided PHP API. The whole warmup process is highly customizable, e.g. by defining a crawling limit, excluding sitemaps and URLs by exclusion patterns or by using a specific crawling strategy. It is even possible to write custom crawlers that take care of cache warmup.
🚀 Features
- Warm up caches of URLs located in XML sitemaps
- Console command and PHP API for cache warmup
- Out-of-the-box support for sitemap indexes
- Exclusion patterns for sitemaps and URLs
- Various crawling strategies to modify crawling behavior
- Support for gzipped XML sitemaps
- Interface for custom crawler implementations
🔥 Quickstart
# Download latest release curl -sSLO https://github.com/eliashaeussler/cache-warmup/releases/latest/download/cache-warmup.phar chmod +x cache-warmup.phar # Run cache warmup ./cache-warmup.phar "https://www.example.com/sitemap.xml"
Find more installation methods in the official documentation.
📕 Documentation
Find all available installation methods, configuration options and customization opportunities in the official documentation.
🧑💻 Contributing
Please have a look at CONTRIBUTING.md
.
⭐ License
This project is licensed under GNU General Public License 3.0 (or later).