Other Applications
How to optimize Magento?

How to optimize Magento?

Speeding up Magento is not always an easy task and commercial extensions for this purpose are expensive. That’s why we will offer you some easy to follow steps which can significantly increase your Magento performance:

  • Enable Leverage browser caching:

Modify the .htaccess file of your Magento with the expires headers from this article. This file can be modified via FTP, SSH, or File Manager in Site Tools.

By doing so your pages will load faster for your visitors and so will other pages that share the same cached resources.

  • Combine CSS and JS files:

This is a built-in feature in Magento and can be done from the Administrative end of your website. Go to Stores > Configuration > Advanced > Developer. Under Javascript Settings (from the Merge Javascript Files drop-down) click YES.
Go to CSS Settings > Merge CSS Files drop-down list select YES.

The last step is to clear the cache of your Magento.

  • Enable Flat Catalog:

You can enable this from the Magento administrator interface. Enabling the Flat Catalog for Products and Categories merges product data into one table, thereby improving performance:

Go to Stores > Configuration > Catalog > Catalog. Select Storefront. Choose YES for Use Flat Catalog Product and Use Flat Catalog Category.

Once enabled, clear the cache of your Magento.

  • Clean the database of your Magento shop:

Magento maintains several database tables for logging. It has a built-in mechanism for cleaning these logs regularly, but this feature is disabled by default. Find more information on how to enable it in our article.

Alternatively, you can clean these logs by accessing your phpMyAdmin in Site Tools, navigate to the Magento database and Empty the following tables:


Note: We highly recommend you to regularly perform such database maintenance in order to improve the performance of your Magento website.

  • Enable Memcached:

Magento websites write a lot of data and objects in their database and it is always recommended to use Memcached. It should provide a great boost in the database calls your Magento makes. You can check our detailed tutorial here for more information on how to enable the Memcached service for the different Magento versions.

  • Activate Magento Compiler:

You can enable Magento Compiler via using SSH connection. Once connected execute the following command:

bin/magento setup:di:compile

This option compiles all Magento installation files and creates a single include path. It will speed up pages 25-50% according to the official documentation.

However, enabling the compiler may cause some issues such as reporting missing php files which cannot be included. This may force you to disable the compiler.

  • Configure Cloudflare CDN:

You can enable Cloudflare for your domain via Site Tools as shown in our tutorial:

How to Enable Cloudflare

To use this CDN service, your website has to be redirected to WWW URLs. This means that you will need to redirect your Magento to http://www.yourdomain.com by changing the Magento domain. This article covers the redirection process.

Share This Article