How to upgrade extension

To upgrade the extension, follow these steps:

  1. Backup your store's database and web directory.
  2. Login to your server's SSH console and navigate to the root directory of the Magento 2 store.
  3. Run the command below to update the current extension with all dependencies:
        composer require mirasvit/module-optimize:* --update-with-dependencies

    Note

    In some cases, the command above is not applicable; neither is it possible to update just the current module, nor need to upgrade all the Mirasvit modules in a bundle. In this case, the command above will be of no effect.

    Run instead composer update mirasvit/* command. It will update all the Mirasvit modules installed in your store.

  4. Run the command below to enable the extension:
        php -f bin/magento module:enable Mirasvit_Core Mirasvit_Optimize Mirasvit_ImageLazyLoad Mirasvit_OptimizeCss Mirasvit_OptimizeHtml Mirasvit_OptimizeInsight Mirasvit_OptimizeJs Mirasvit_OptimizeImage
  5. Run the command below to install updates:
        php -f bin/magento setup:upgrade
  6. Run the command below to clean the cache:
        php -f bin/magento cache:clean
  7. Deploy static view files:
        rm -rf pub/static/frontend/*; rm -rf pub/static/backend/*; rm -rf var/view_preprocessed/*;
        php -f bin/magento setup:static-content:deploy