Tweak magento website for a better performance

Magento is a popular open source CMS used by ecommerce based websites.

magento website can be tuned and optimized for a better performance

Step 1) by setting up magento caching

go to the System menu and choose Cache Management. Select the following 4 options:
— Configuration
— Layouts
— Block HTML output
— Translations

need to enable them and disable other options

Step 2) install fooman speedster extension
magento admin >> system >> Magento connect >> Magento connect manager.

extension key : magento-community/Fooman_Speedster

Add the below lines to the .htaccess file of the magento
## Compress, Combine and Cache Javascript/CSS
RewriteRule ^(index.php/)?minify/([^/]+)(/.*.(js|css))$ lib/minify/m.php?f=$3&d=$2

Step3) Remove unused homepage code
magento admin >> CMS pages >> Choose pages >> Home Page >> design view

delete the contents of the Layout Update XML box, (will not affect the site)

Step4) .htaccess expires (It needs mod_expires enabled in the server)

# turn on the module for this directory
ExpiresActive on
# set default
ExpiresDefault “access plus 24 hours”
ExpiresByType image/jpg “access plus 1 months”
ExpiresByType image/gif “access plus 1 months”
ExpiresByType image/jpeg “access plus 1 months”
ExpiresByType image/png “access plus 1 months”
ExpiresByType text/css “access plus 1 months”
ExpiresByType text/javascript “access plus 1 months”
ExpiresByType application/javascript “access plus 1 months” ExpiresByType application/x-shockwave-flash “access plus 1 months”

Step5) Enable flat categories and flat products

magento admin >> System >> Index Management
Reindex the Product Flat Data and Category Flat Data.


System >> Configuration >> Catalog
set the Use Flat Catalog Category and Use Flat Catalog Product both to Yes.


There are no revisions for this post.

Tags: , , , , ,

No comments yet.

Leave a Reply