Magento Development – Optimization

In Magento Development, Optimization forms an important role. Magento comes with enabled caching by default thus prevents repetition of some of the heaviest operations. However, this is not always enough for Magento to work fast.
Speeding up Magento is not that easy task and commercial extensions for this purpose are quite expensive. That’s why we provide you two easy to follow steps which can significantly increase Magento Performance:
1. Enable the compiler which comes with Magento by default that can be found in Magento admin panel, System, Tools, Compilation. Just click on Enable and after that Run Compilation Process.
The above described option compiles all Magento installation files and creates a single include path. The above said process will speed up pages 25-50% according to the official documentation.
However, we have to note that enabling the compiler may bring some issues such as reporting missing php files that cannot be included. And so you are forced to disable the compiler. This can be done similarly to enabling it, that is, go to admin panel, System, Tools, Compilation.

2. If the above said process does not  give improvement then the next step is to install a third party extension for which we will use the freely available Fooman Speedster. Its extension key is:

magento-community/Fooman_Speedster

To install Fooman Speedster,  follow these steps:
First, from Magento’s admin panel go to System, Magento Connect, Magento Connect Manager. There paste the above said key and click on Install.

The next step is to add the following line to your Magento .htaccess:

RewriteRule ^(index.php/)?minify/([^/]+)(/.*.(js|css))$ lib/minify/m.php?f=$3&d=$2

The above described steps will force all requests to be processed through the extension frontend which is called m.php. For the processor to work properly please do the following:

a. Now you can modify  the permissions for the directory lib/minify/ to 755 recursively. These are the correct permissions for your webserver runs under your user and php is in suexec as in most of the shared hosting environments. Alternatively, you can nowleave the default 777 permissions.

b. Check that the caching directory ‘var/minifycache/’ is writable. In most cases it is enough to have 777 permissions. Then open your Magento a few times and check if files such as minify_67fe988157635b14d2f1e076727899d2 have appeared in the directory in question.

In Magento Development , the above mentioned optimization steps are the fastest and easiest method to get  an optimized Magento.

 

If the above performance improvement is not enough you can try to get a Magento optimized web hosting.

 

Alex Smith is an Author and 10 years of experience in various topics such as like Magento development, cheap Magento site, Magento customization, Magento themes, Magento development India etc.

Processing your request, Please wait....

Leave a Reply