How to upgrade Magento 2

rm -rf var/cache/*  var/page_cache/*  var/view_processed/* generated/code/* pub/static/frontend/ pub/static/adminhtml/ Php bin/magento setup:upgrade Php bin/magento setup:di:compile Php bin/magento setup:static-content:deploy –f Chmod 777 -R var/ pub/ generated/ Take Backup of your running website Create a Backup Backing up the Magento 2 store before […]

Create Data and Schema Patches in Magento 2

A data patch is a class that contains data modification instructions like update, Insert, delete. A schema patch is a class that contains schema modification instructions like create, drop, alter. 1. It is defined in a <Vendor>/<Module_Name>/Setup/Patch/Data/<Patch_Name>.php file and implements \Magento\Framework\Setup\Patch\DataPatchInterface 2. Patches […]

Faster Composer comes to Magento 2

One of the more exciting improvements included in Magento 2.4.2 is the support of Composer 2.0. In our tests, this brought a substantial speed increase and less memory usage to Composer commands run against your Magento project code. How do you benefit […]