Adjust Magento configuration by shell to achieve better performance

cd /var/www/domain.com/web;
php7.2 bin/magento config:set catalog/frontend/flat_catalog_product 1;
php7.2 bin/magento config:set catalog/frontend/flat_catalog_category 1;

php7.2 bin/magento config:set dev/js/enable_js_bundling 0;
php7.2 bin/magento config:set dev/css/minify_files 1;
php7.2 bin/magento config:set dev/js/minify_files 1;
php7.2 bin/magento config:set dev/template/minify_html 1;
php7.2 bin/magento config:set system/full_page_cache/ttl 86400;
php7.2 bin/magento config:set dev/grid/async_indexing 1;
php7.2 bin/magento config:set sales_email/general/async_sending 1;
php7.2 bin/magento config:set catalog/frontend/grid_per_page_values "12,24,36";
php7.2 bin/magento config:set catalog/frontend/grid_per_page "12";
php7.2 bin/magento deploy:mode:set production;
Share on facebook
Share on google
Share on twitter
Share on linkedin
Share on whatsapp