Categories

Featured templates

What are the good ways to improve Magento performance?

Alice Weasley April 8, 2015
Rating: 5.0. From 3 votes.
Please wait...

The following tutorial will show you how to optimize your Magento site performance.

Magento Compiler

NOTE: Magento Compiler is a module that comes prepackaged with Magento. It compiles PHP files that are located in many different directories into a single folder (e.g. public_html/includes/src), and thus the files are executed faster since they are located in one place and there is no need for searching through the various directories.

  1. To activate the Compiler, log into your Magento admin panel.

  2. Navigate to the System -> Tools -> Compilation.

  3. Click on the Run Compilation Process button:

    magento_how_to_optimize_site_1

  4. If you want to upgrade your store or meet some issues after enabling Compiler, press the Disable button that appears in the upper right corner after you run the compilation process.

Merge CSS and JavaScript Files

NOTE: By merging the CSS (Cascading Style Sheets) and JavaScript files you reduce the number of HTTP (HyperText Transfer Protocol) requests. The fewer requests you have, the faster the page will load.

  1. Navigate to System -> Configuration -> Advanced -> Developer:

    magento_how_to_optimize_site_2

  2. Click JavaScript Settings panel to open it.

  3. Set the drop-down menu Merge JavaScript Files to Yes.

  4. Click CSS Settings panel to open it.

  5. Set Merge CSS Files dropdown to Yes:

    magento_how_to_optimize_site_3

  6. Click on the Save Config button to save changes.

Optimize Database

  1. Open the phpMyAdmin tool (you can find it in your hosting control panel).

  2. Once in phpMyAdmin, in the left frame click on the name of the database used by Magento to view its tables.

  3. Click the Check All link at the bottom of the page to mark all the database tables.

  4. Choose an Optimize table using the With selected drop-down menu:

    magento_how_to_optimize_site_4

  5. You can do this optimization regularly. From time to time you can also use the Repair table function, in case there are any damaged tables.

Hosting settings

  1. Get a dedicated server or a VPS from a poster specialized in Magento.

  2. Your country or continent hosting is recommended. For worldwide customers use a CDN (Content Delivery Network).

  3. Remove the files you do not use from the server.

  4. Only the necessary database modules should be installed.

  5. Swap Apache for NginX or Litespeed.

  6. Don’t use too many different external sources (for images, iframes, (twitter/facebook) feeds etc.) because every DNS lookup takes extra time and you create an extra dependency (on some 3rd party server) for your site to load properly.

  7. Minimize redirects.

  8. Turn off or at least reduce the web server logging.

  9. Set ‘php_value memory_limit 512M’ in your php configuration or add it to your .htaccess file to ensure you don’t run out of memory.

  10. Install the Yireo DisableLog add-on. It prevents Magento writing tons of stuff to your database which is useless when you’re already using something like Google Analytics.

Magento configuration

  1. Uninstall the extensions you do not use. This tutorial will help you with it: Magento. How to work with extensions

  2. Disable modules that you don’t use: System -> Configuration -> Advanced -> Advanced.

    magento_how_to_optimize_site_5

  3. Enable all the Magento Caches in System -> Cache Management.

    magento_how_to_optimize_site_6

  4. Enable the Flat Catalog in System -> Configuration -> Catalog -> Frontend section by setting the Use Flat Catalog Category and Use Flat Catalog Product to Yes. Make sure to press the Save Config.

    magento_how_to_optimize_site_7

That is the end of the tutorial. Now you know how to optimize your Magento store performance.

Magento Templates
This entry was posted in Magento Tutorials and tagged Magento, optimize, speed. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket

Live Chat
We help you to choose the right product.