renakdup / cache-warm-up
PHP cache warmup via CLI tool
0.2.2
2024-06-10 18:23 UTC
Requires
- php: ^8.0
- ext-simplexml: *
- guzzlehttp/guzzle: ^7.8
- renakdup/simple-dic: ^1.1
- symfony/console: ^7.0
- symfony/validator: ^7.0
Requires (Dev)
- ergebnis/composer-normalize: ^2.42
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.11
- phpstan/phpstan-deprecation-rules: ^1.2
- phpunit/phpunit: ^11.1
- rregeer/phpunit-coverage-check: ^0.3.1
- symfony/var-dumper: ^7.0
README
Support: PHP ^8.0, PHP 7.4 just in 0.1.*
versions.
PHP package for warming up cache on sites via http requests.
Install
PHP 8.0 and above
composer require --dev renakdup/cache-warm-up
! PHP 7.4 available just in this branch
composer require --dev renakdup/cache-warm-up:0.1.*
Run
./vendor/bin/cache-warmup https://wp-yoda.com/sitemap_index.xml -c 5 -d 2
It would looks like
andreipisarevskii$ ./vendor/bin/cache-warmup https://wp-yoda.com/sitemap_index.xml -c 5 -d 2 200 | https://wp-yoda.com/sitemap_index.xml 200 | https://wp-yoda.com/post-sitemap.xml 200 | https://wp-yoda.com/post_tag-sitemap.xml 200 | https://wp-yoda.com/notices-sitemap.xml 200 | https://wp-yoda.com/category-sitemap.xml 200 | https://wp-yoda.com/page-sitemap.xml 200 | https://wp-yoda.com/author-sitemap.xml 200 | https://wp-yoda.com/notice_category-sitemap.xml ============= 200 | X-Cache: MISS | Cf-Cache-Status: MISS | https://wp-yoda.com/ 200 | X-Cache: MISS | Cf-Cache-Status: BYPASS | https://wp-yoda.com/about-me/ 200 | X-Cache: MISS | Cf-Cache-Status: MISS | https://wp-yoda.com/adaptacziya-programmnyh-produktov/otlichiya-i18n-i-i10n/ 200 | X-Cache: MISS | Cf-Cache-Status: MISS | https://wp-yoda.com/bazy-dannyh/klasternye-i-neklasternye-indeksy/ 200 | X-Cache: MISS | Cf-Cache-Status: MISS | https://wp-yoda.com/category/bazy-dannyh/relyaczionnye-bazy-dannyh/mysql/ Delay 2 sec 200 | X-Cache: MISS | Cf-Cache-Status: MISS | https://wp-yoda.com/category/adaptacziya-programmnyh-produktov/ 200 | X-Cache: MISS | Cf-Cache-Status: MISS | https://wp-yoda.com/category/bash/ 200 | X-Cache: MISS | Cf-Cache-Status: MISS | https://wp-yoda.com/category/bazy-dannyh/ 200 | X-Cache: MISS | Cf-Cache-Status: MISS | https://wp-yoda.com/category/bazy-dannyh/relyaczionnye-bazy-dannyh/ 200 | X-Cache: HIT 1 | Cf-Cache-Status: MISS | https://wp-yoda.com/category/macos/
Roadmap
- Release composer package.
- Support concurrency option.
- Support delay option.
- Add request handlers.
- Add formatters.
- Add filelogger.
- Add opportunity to register custom logger.
- Add Unit tests.
- Add exclude patterns.
- Add hooks for extending.
- Add phpcs
- Add phpstan
- Add github action runs: phpcs/phpstan
- Add deploybot.