How to Optimize-magento website

It may help, for your doubt.

How to Optimize Magento website :

( I ). We have to merge all default mangento JS files into single custom file. it’ll reduce the number of apache request. And custom JS file content should be in the default magento rendering order.

( II ). We can enable the Block cache for product listing page.

in app/code/core/Mage/Catalog/Block/Product/List.php

Add the below set of code and will support block cache with multiple currency options also.

protected function _construct()
{
$this->addData(array(
‘cache_lifetime’    => 3600,
‘cache_tags’        => array(Mage_Catalog_Model_Product::CACHE_TAG),
‘cache_key’            => $this->getCacheKey()
));
}

public function getCacheKey()
{
return $this->getRequest()->getRequestUri().$this->getCacheCurrencyCode();
}

//retreive current currency code
public function getCacheCurrencyCode()
{
return Mage::app()->getStore()->getCurrentCurrencyCode();
}

( III ). We can use Image CDN like Amazon S3, Highwinds, Rackspace Cloud Files to store the catalog images, it’ll dramatically reduce the apache request.
Not only for catalog images, can store the store CSS a& JS files also.

Author : Thamotharan