Cache Warmer
v1.10.1

Command Line Interface

Usage: php -f bin/magento [options]

  • mirasvit:cache-warmer --warm - warm the pages which you can see in SYSTEM->Page Cache Warmer depending on Performance configurations
  • mirasvit:cache-warmer --remove-all-pages - remove all pages from the module
  • mirasvit:cache-warmer:crawl - crawl all store pages
  • mirasvit:cache-warmer:crawl --unlock - unlock if it was finished incorrectly
  • mirasvit:cache-warmer:crawl --customer-group-id 1 - crawl all pages for customers with group ID 1
  • mirasvit: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 2
  • mirasvit:cache-warmer:crawl --base-url http://example.com - crawl all pages for the store with the base url http://example.com
  • mirasvit:cache-warmer:crawl --ignore-query - crawl all pages except pages with query parameters (?)

Note

Arguments for the mirasvit: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 Sources
  • mirasvit:cache-warmer:sync-source --source-id 2 - synchronize the source with ID 2
  • mirasvit: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 the mirasvit: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 test
  • Note that arguments for the mirasvit:cache-warmer:crawl command option can be combined.

    Example: mirasvit:cache-warmer:crawl --ignore-query --unlock