Magento Optimization

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:

You should 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 cPanel.

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 System -> Configuration -> 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 System -> Configuration -> Catalog. Select Frontend (from the Use Flat Catalog Category drop-down list) and click YES. Next, go to Frontend -> Use Flat Catalog Product and select YES.

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. You can find more information how to enable it in our article.

Alternatively, you can clean these logs by accessing your phpMyAdmin in cPanel, 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 how to enable the Memcached service for the different Magento versions.

  • Activate Magento Compiler:

You can enable it in the Magento admin panel, under System -> Tools -> Compilation. Click on Enable and Run Compilation Process after that.

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 cPanel 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 by changing the Magento domain. This article covers the redirection process.

You find this article useful? Click here to learn more about SiteGround web hosting experts and what else we can do for you!