Hire Us

Performance Optimization In Magento



Performance optimization is essential for a website to perform smooth and give users a wonderful shopping experience. Performance optimization can be termed as another way to boost the speed of the site. Generally, an ecommerce site is developed on an open source platform. Magento is the top platform used in the development of an e-commerce site. Not only is Magento a reliable platform but is one of the platforms that come with all the features which an ecommerce site requires to strive. So when you plan for an ecommerce business, relying on Magento for its development and optimization the platform for better performance will ensure the backend of your business is ran successfully.

Most ecommerce companies having done an analysis on their website have found out that the site performance affects user behavior a lot. It has also been noticed that most people tend to leave a site more or abandon cart when they face performance issues on the site.

When you choose an ecommerce platform, there are lots of options available in the market, but Magento is a robust platform to choose. It has high functionality and is highly scalable, a perfect fit for your business.

According to Google Trends, the activity around Magento is very high. Since its official release Magento has seen a steady rise in this activity. After the latest Magento 2 update and release, the numbers have increased even further.

Speeding Up Magento

It has been noticed that Magento and WooCommerce face speed issues and without maintenance their performance degrade over time.

Kissmetrics states that if an e-commerce site is making $100,000 per day, a 1 second page delay could potentially cost you $2.5 million in lost sales every year. So let’s understand a few speeding techniques to speed up Magento,

Latest Version

It is very important that you have an updated version Magento. This is because all updates contain lot of bug fixes which is essential in the performance of the site. Currently, Magento 2 is the latest version, and if you are still using the older versions, it is time that you should upgrade it ASAP.  When installing the latest version, keep the following in mind:

  • Install a fresh version of Magento file tree
  • Run the installer from the file tree on top of all outdated database
  • Move the themes and custom extensions from the old version to the new one.

Though it is a little work, updating Magento latest version, yet when you get notifications about updates from the team, oblige.

Content Delivery Network

A CDN or Content Delivery Network with Magento is one of the easiest ways to see instant decreased load time.  By implementing CDN in your Magento, you can ensure that you are serving your assets from multiple locations around the globe for faster delivery to shoppers.

Utilizing Caches

There are different forms of caching that can be implemented with Magento. Some people find great success by combining NGINX, APC, Memcache and Varnish caching together. Magento also has a built in caching module which can be used for using caches. Of course, there are third party applications that can be used too for achieving better results.

  • Browser caching- A form of caching that you can use is browser caching. You can make a few changes; add to your .htaccess file and delivery speedy results.
  • Gzip Compression- The Gzip compresses web pages and style sheets at the server level before sending them to the browser.
  • Expire headers- Using expire header is another useful way to speed up. These headers tell the browser whether it should request a file from the server or grab it from the browser’s cache.
  • Page caching- This is another powerful way to speed up a Magento based site. The load is taken off from the web server by serving pages already visited before from cache. This makes the process a lot faster.

If all these caching styles are confusing, you can select extensions available for Magento.

Enable Flat Catalog

Magento uses the Entity Attribute Value or EAV model to store customer and product data. Enabling the flat catalogs for products and categories merges product data into a single table, thereby improving the performance by responding to MySQL queries faster.  This process works better for stores that have more than 1000 products. Here’s how to enble flat catalog;

  • Navigate to “System” → “Configuration” → “Catalog.”
  • Under “Frontend” change “Use Flat Catalog Category” and “Use Flat Catalog Product” to “Yes.”
  • Click on “Save Config.”
  • Clear the cache. The preferable way to do this is to delete everything from the /var/cache directory. You can also do it by navigating to “System” → “Cache Management” and clicking on “Flush Cache Storage”.

Image Optimization

Most of the weight of a web page is created by images. Hence, optimizing images will dramatically increase the speed of your pages as this decrease the download times. Compress the images using Photoshop or another tool before uploading them. You can also install suitable Magento extensions to make the work of image optimization easy.

Merge CSS and JavaScript Files

Magento has a built in feature that can merge your JavaScript and CSS files into a single file. When you make a single file for both assets, you reduce your total number of HTTP requests and in turn help in speeding up the loading of your pages. Use the following method to do this;

  • Navigate to “System” → “Advanced” → “Developer.”
  • Under “JavaScript Settings” and “CSS Settings” change the dropdown to “Yes” and click on “Save Config.”
  • After combining these files, you will need to clear the cache. Follow the process we mentioned earlier.

To take this a step further, you can minify your JavaScript and CSS using a third party extension.

There are several other things that you can do to improve the speed of site and optimize it. Some of these include:

  • Use PHP Accelerators
  • Update Indexes
  • Configure MySQL
  • Use fewer modules and extensions
  • Clean up Magento logs and database.


In this blog, we tried to introduce you to several ways of improving your site speed for Magento ecommerce site. From updating to the latest version to cleaning up Magento logs and database, and merging CSS and JS files to using a Magento compiler, we have shared several techniques. Implement these techniques in your store and you are bound to see positive results. If you know of any other methods that we might have missed, we would love to hear about it on our Twitter and Facebook Page.

Tagged: , ,

Performance Optimization In Magento