PHP code example of cloudcommerce / cachewarmer

1. Go to this page and download the library: Download cloudcommerce/cachewarmer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

cloudcommerce / cachewarmer example snippets

bash
composer nto module:enable CloudCommerce_CacheWarmer
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush
bash
php bin/magento module:enable CloudCommerce_CacheWarmer
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush
bash
php bin/magento cloudcommerce:cache:warm
bash
php bin/magento cloudcommerce:cache:warm --store-id=1
bash
php bin/magento cloudcommerce:cache:warm --check-cache
php bin/magento cloudcommerce:cache:warm --url="https://example.com/page.html" --check-cache