How to enable Magento 2 profiler?

Magento profiler can help you with the store performance tuning before the store release or during the exploitation.
The old UI for enabling/disabling the profiler is not available in Magento 2 and the profiler is disabled by default.
To enable one of the profiler formats mentioned above, you can edit .htaccess (a configuration file for Apache Web Server software):

    Choose one of the next expressions:

Some important command in Magento2 after you change the mode to production

From the Magento root directory, switch to production mode:

 bin/magento deploy:mode:set production

Enable JavaScript bundling:

 bin/magento config:set dev/js/enable_js_bundling 1

Optimize bundling by minifying JavaScript files:

 bin/magento config:set dev/js/minify_files 1

Enable cache busting on static file URLs. This ensures users get the latest version of the assets anytime they update:

 bin/magento config:set dev/static/sign 1

Make the Tax ID mandatory in the checkout page

The easiest way to make the tax/vat id mandatory in the checkout page is to change the is_required in the eav_attribute table


you can use this Query to change the value from 0 => 1


UPDATE `eav_attribute` SET `is_required` = '1' WHERE `eav_attribute`.`attribute_code` = 'vat_id';


or you can use this code when you want to use a custom extesnion


$installer->updateAttribute('customer_address', 'vat_id', 'is_required', true);


Subscribe to magento2