How to Optimize Magento Website



Magento Speed  optimization


1) Reduce HTTP requests
- Use Sprite Image
- Merge CSS & JS files

2) Enable Flat catalog - Change “Use Flat Catalog Category” and “Use Flat Catalog Product” to “Yes.”

3) Clean Up Magento Database & Logs - By default, Magento keeps logs up to 180 days. This can result in your database growing quite large. You change it to something smaller like two weeks (14 days) to save space.
Navigate to “Stores” → “Configuration” → “Advanced”→ “System” → “Log.”
Under “Save Log, Days” change it to 14 days, or whatever you prefer.
Click on “Save Config.”

You can also manually clean up your database by emptying the log tables.
In phpMyAdmin select all of the log_% tables and select “Empty” from the drop-down box.
Click on “Yes” when it asks you if you really want to TRUNCATE the tables.

4) Using Content Delivery Network (CDN) - This is one of the best speed optimization techniques inorder to serve your web pages fasters to visitors coming from other end of the globe. CDN basically constitutes geographically distributed nodes. These nodes cache your web page.  When a visitor from a distant location tries to access your site, the nearest node near the visitor displays the cached copy of your page.

5) Page Caching - It is one of the most powerful ways to speed up Magento. Load is taken off from the webserver by serving pages already visited before from cache, which makes it a lot faster.
There are a few page caching extensions available for Magento, 
- Zoom Full-Page Cache
- Full Page Cache Pro 
- Brim’s Full Page Cache

6) CSS & JS compression

7) Using .htaccess - Give Expire time to files

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
</IfModule>
## EXPIRES CACHING ##

8) Disable/Uninstall unused Magento modules

9) Choose Fast Web Hosting - Choose a reliable and fast web host can be one of the most important decisions you will make when trying to improve Magento performance

10) Image Optimization - On an average 55 percent of a website’s page weight is made up of images. Optimizing your website images can dramatically increase the speed of your pages as this decreases their download times. Do the lossless compression using certain tools.

No comments:

Post a Comment

Buy/Sell Source Code of Website,Apps,Softwares

Install sample data in magento 2