This article provides detailed instructions for optimizing a Magento website. In order to run Magento efficiently, your server should have atleast 16 GB of RAM, preferably 32 GB. To run Magento efficiently, you’ll need either a high-end VPS or a dedicated hosting plan. In order to run a full Magento website, you will need a dedicated hosting account.
Magento comes with a slew of performance-enhancing settings that you can tweak to your heart’s content.
The following instructions will walk you through the steps necessary to set these options up for maximum performance.
Magento 2 and 1.9 can both use the settings described here.
Some of these options may not be available in earlier versions of Magento.
If your site’s performance is still not at the level you desire, there are additional options:
Drop-in Apache replacements are used in Turbo Boost, Turbo Max Web hosting, and managed VPS with Turbo Boost accounts, allowing pages to load up to five times faster than with regular web hosting.
Memcached can be used to speed up page load times on managed VPS, managed Dedicated server, Turbo Boost, and Turbo Max Web Hosting accounts.
Magento’s cron job runs every 15 minutes by default on managed servers.
On the other hand, this frequent interval can lead to performance issues that affect not only your account but those of other users as well.
Detailed instructions on configuring Magento’s cron jobs for maximum performance and avoidance of slowdowns can be found here.
Due to Magento’s default log setting, databases can quickly become unmanageably large, resulting in decreased site responsiveness.
It is possible to significantly reduce database sizes and improve site performance by optimizing Magento’s log settings and cleaning the database log table.
Your Magento store should be using all of the built-in caches, and you should do so.
Take these steps to accomplish this:
Once you’ve logged in to Magento as an administrator, proceed as follows:
- Cache management can be found under SYSTEM in the left sidebar of Magento 2.
2. Cache management can be found in the top menu bar of Magento 1.9.
Make sure that all of the caches are enabled in Cache Storage Management.
Make sure that you have checked the box next to the cache type you want to enable, then select Enable from the drop-down menu.
Only Magento 1.9 can benefit from this optimization.
Magento’s app/code/local directory houses custom modules.
To speed things up, you can tell Magento to ignore this directory if there are no files in it or if the local directory does not even exist.
Using a text editor of your choice, open the app/etc/local.xml file, and then change the disable local modules> tag to true as shown:
Set the <disable local modules> tag to false to re-enable local modules.
Some Apache optimizations are disabled by default in Magento’s.htaccess file.
You can help your store’s page load times by enabling these optimizations.
Compressing output is made possible by the Apache mod deflate module.
As a result, less data is transferred and the page loads more quickly.
Magento output compression can be enabled by performing the following steps:
- Open the.htaccess file in a text editor of your choice.
2. Deflate mod deflate by uncommenting the lines in the text block.