The name Magento is asynonym to e-commerce websites. It is the most widely used e-commerce platform ever. According to a report, around 22% of the top 100,000 e-commerce sites use either Magento or Magento Enterprise. This open source platform is owned by eBay. One of the most frequently faced problems with Magento or any other e-commerce sites is the speed. As more and more products are added, the database and the site become slow. We will be looking at various ways for Magento optimization to increase its speed. We already made 2 detailed guides on how to create a fast loading website. You can read them in Part 1 and Part 2.
1. Stay Updated
Magento is one of the most comprehensive platforms which get regularly updated. Updates are released for bug fixes, security updates and also performance improvements. Magento as a platform contains many modules and it might become slow over time. Magento collects regular feedback and optimizes speed issues of these components and releases regular updates. You can get regular notification of updates available in your dashboard. Unlike Woocommerce or Shopify, updating Magento is not straight forward. Follow the below steps to update Magento.
- Take a fresh backup of both your files and database before upgrading. If anything goes wrong, you can restore the old version using this backup.
- Chose a quiet time when there will be least or no activity on the platform for updating.
- Download the latest version of Magento. Start the setup routine and when Magento asks for the access data of your database, use the old database. Magento will automatically upgrade your database to the newer one.
- Transfer the themes and plugins from the old version to the latest version. Copy your media folder to use all images of products and categories and wysiwyg. Re-Index and enable the cache.
2. Implement a CDN
3. Enable Caching
One of the most frequently used methods of caching is by combining NGINX + APC + Memcache + Varnish caching. Magento also comes in with a built-in cache management where you can enable or disable various method of caching. Just login to your Magento admin panel and click System-Cache Management.
The second method of caching is by using the browser caching which is implemented using the .htaccess file. Browser caching is implemented using the Expire headers. This will tell the browser whether to fetch the site from the server of reuse the previously downloaded files. You can also compress your resources and web page at the server end before sending it across to the browser. This will also reduce the load time for the end user. This can be achieved using Gzip compression.
Another method of caching is Page Caching where complete webpages are rendered using the existing cache instead of querying the server. This can be achieved using one of the below plugins.
- Zoom Full-Page Cache
- Full Page Cache Pro
- Brim’s Full Page Cache
We will be discussing more methods in detail for Magento optimization in the next version of this article.