Powered by Tech-Attacks

Tips & Tricks to speed up Magento

Tips & tricks to speed up Magento - http://techattacks4u.blogspot.in/Tech-Attacks found many readers asking me to post article on Tips and Tricks for speeding up Mangeto, so today, will be posting it.

It seams like a good list to consider when having troubles with the site speed.

For more Updates Follow us on our BLOG or get tuned by simply Liking Tech-Attacks on Facebook.

So here we present the list which can effectively speedup your Magento:
- Use KeepAlive in Apache.
- Make sure the query buffer on your MySQL instance is large enough.
- Hosting MySQL on another (V)Machine will help
- Migrate .htaccess to you apache config and turn off AllowOverride.
- Use some kind of opcode cashing, like APC of even better, Zend Server
- Use mod_deflate
- Use mod_expires
- Put var/cache in a /dev/ramdisk of tmpfs
- Use the CDN option, or at least something that is accessible via another DNS name (like content.yoursite of static.yoursite) as browsers are limited to X connections to a certain host at one time (use the URLs in System -> Configuration -> Web to accomplish this), but be aware of the fall-back mechanism for skins. Also beware that the upload script in the backend does not like it when it's hosted on another hostname (potential XSS). Your uploads will fail. To overcome this, make sure the backend uses local JS and the frontend uses CDN. To accomplish this use the configuration scope in the Web config section (default to local, storeviews to CDN).
- Move /media to another server
- After putting var/cache in ramdisk, put the rest somewhere with fast I/O. Like SAS disks or a SSD. Don't put it on something like iSCSI or SATA. Put media on cheap I/O like SATA, preferably on another server, or something assebeble via another hostname.
- If you have the option, don't use apache at all. Try ngnix.

Magento:
- Use flat catalog (System -> Configuration -> Catalog -> Frontend)
- Enable cache (System -> Cache management)
- Compile Magento when opcode caching is no option (System -> Tools -> - Compiling)

Hacking
- Disabling the fall-back mechanism for themes / skins and merging the base and your current into one will save you a lot of IO
- Try to code your modules in a way they can use cache
- Try full page caching, all tough you will have to buy a license for products like Zend Server, this will boost performance.
- Try cashing frequently used queries (in a request kind of context I mean) in f.e.a arrays. But beware of the memmory limit. Unset things of necessary.

Webdesign
- Use sprites
- Combine everything in one CSS file or use one of the extensions already mentioned.
- The same goes for javascript
- Use robots.txt to stop robots from crawling certain URLs with producs they probably already indexed trough other URLs. It will just cause additional load.

After you've done all that, you site needs to be immense popular to require load balancing of MySQL clustering.

6 comments:

  1. Can I simply say what a relief to find somebody that truly understands what
    they are discussing on the internet. You definitely know how to
    bring an issue to light and make it important. More
    and more people ought to read this and understand this side of your story.
    It's surprising you're not more popular since you
    certainly have the gift.

    Stop by my weblog; Avira System Speedup keygen

    ReplyDelete
  2. really nice data and info , so i am feeling good to see , after reading your article , feeling much happay and solve provlem that i have :)

    ReplyDelete
  3. This is a topic which is close to my heart…
    Thank you!
    RemoveWAT 2.2.9

    ReplyDelete
  4. thankyou admin for posting this topic it is very useful information.

    Software Full Version

    ReplyDelete
  5. thankyou admin for posting this topic it is very useful information.

    Software Full Version

    ReplyDelete
  6. thanks admin for posting this topic. very useful information.
    Software Full Version

    ReplyDelete