Command Line Interface
Usage: php -f bin/magento [options]
mirasvit:cache-warmer --warm
- warm the pages which you can see inSYSTEM->Page Cache Warmer
depending onPerformance
configurationsmirasvit:cache-warmer --remove-all-pages
- remove all pages from the modulemirasvit:cache-warmer:crawl
- crawl all store pagesmirasvit:cache-warmer:crawl --unlock
- unlock if it was finished incorrectlymirasvit:cache-warmer:crawl --customer-group-id 1
- crawl all pages for customers with group ID 1mirasvit:cache-warmer:crawl --cycle_limit 5
- set the cycle limit for crawl command, where the default value is 100. During the first cycle, the crawler visits the Home Page and gathers all the links. The second cycle visits all links from the pages gathered during the first cycle of crawling.mirasvit:cache-warmer:crawl --store-id 2
- crawl all pages for store with ID 2mirasvit:cache-warmer:crawl --base-url http://example.com
- crawl all pages for the store with the base url http://example.commirasvit:cache-warmer:crawl --ignore-query
- crawl all pages except pages with query parameters (?)
Note
Arguments for themirasvit:cache-warmer:crawl
command option can be combined.
Example: mirasvit:cache-warmer:crawl --ignore-query --unlock
mirasvit:cache-warmer:sync-source
- synchronize URLs from configured Sourcesmirasvit:cache-warmer:sync-source --source-id 2
- synchronize the source with ID 2mirasvit:cache-warmer:sync-source --reset
- reset synchronization date of the Source(s). It will not start the synchronization automatically after resetting the synchronization date.mirasvit:cache-warmer:sync-source --unlock
- unlock if it was finished incorrectly
Note
Arguments for themirasvit:cache-warmer:sync-source
command option can be combined.
Examples:
mirasvit:cache-warmer:sync-source --source-id 2 --unlock
- unlock the process and synchronize the Source with ID 2-
mirasvit:cache-warmer:sync-source --source-id 2 --reset
- reset the source with ID 2
mirasvit:cache-warmer:test
- for the purpose of a module testNote that arguments for the mirasvit:cache-warmer:crawl
command option can be combined.
Example: mirasvit:cache-warmer:crawl --ignore-query --unlock