fruitcake / magento2-sitemap-warmer
Magento2 Sitemap Warmer
Fund package maintenance!
barryvdh
Installs: 37
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: ^7.4|^8
- ext-json: *
- magento/framework: *
- magento/module-sitemap: *
- symfony/console: ^4|^5|^6
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.34
This package is auto-updated.
Last update: 2024-10-11 09:58:57 UTC
README
If you have a sitemap, just run this command to warmup your pages.
Install
composer require fruitcake/magento2-sitemap-warmer
php bin/magento setup:upgrade
Usage
The cron does not run automatically. You can add it to you crontab manually.
Basic usage, use the sitemaps from Magento and execute 100 visits:
php bin/magento sitemap:warm
Specific sitemap:
php bin/magento sitemap:warm https://example.com/sitemap.xml
Specific sitemap:
php bin/magento sitemap:warm https://example.com/sitemap.xml
Only urls with priority 0.5, sleep 1 sec between each requests and execute 500 urls
php bin/magento sitemap:warm --priority=0.5 --sleep=1 --requests=500
I suggest you use flock in your crontab to avoid overlap.
TODO
- Add cron schedule/settings in admin
- Run cron with Magento cron, avoid overlap