How to upgrade extension
To upgrade the extension, follow these steps:
- Backup your store's database and web directory.
- Login to your server's SSH console and navigate to the root directory of the Magento 2 store.
- 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 insteadcomposer update mirasvit/*
command. It will update all the Mirasvit modules installed in your store.
- 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
- Run the command below to install updates:
php -f bin/magento setup:upgrade
- Run the command below to clean the cache:
php -f bin/magento cache:clean
- 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