1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Magento Optimization (Site is loading very slow)

Discussion in 'Black Hat SEO' started by creativepotion, Nov 13, 2012.

  1. creativepotion

    creativepotion Regular Member

    Joined:
    Jun 23, 2012
    Messages:
    305
    Likes Received:
    19
    Anyone of you here host your magento site with hostgator? (Shared hosting).
    I dont have a lot of products, only 20-30 and I find my site loading speed quite slow.

    I came across a few guides optimizing it, but seems like each guide uses different techniques and stuff.
    Can someone please give me some pointers to which one I should follow etc.? Thx
     
  2. critman

    critman Regular Member

    Joined:
    Apr 19, 2011
    Messages:
    274
    Likes Received:
    144
    Occupation:
    IM Student
    Location:
    T-dot
    That's just the way Magento's built, I'm afraid. I have mine on a dedicated server and it's still a little sluggish. A couple of things you can do to help though:

    If you can, definitely get away from a shared server, and get a faster setup. Also, I've read that the newer litespeed servers handle Magento better than the standard Apache.

    Get some of those extensions that optimize your site. Lots of free ones at Magento connect. They automate compressions and stuff like that. Don't forget to enable caching as well.
     
  3. Stizerg

    Stizerg Power Member

    Joined:
    Oct 23, 2011
    Messages:
    611
    Likes Received:
    167
    You shouldn't use cheap shared hosting for magento. Even if you have just a couple of items on your site, magento takes a lot of memory and cpu time. Use CDN like Amazon CloudFront for all your pictures and javascripts.
     
  4. creativepotion

    creativepotion Regular Member

    Joined:
    Jun 23, 2012
    Messages:
    305
    Likes Received:
    19
    Can you please elaborate this?
    My existing magento site is with hostgator now and its on annual subscription, so I still have a long way to go till it expires.

    You mentioned about using CDN for pictures and javascripts.
    Does that mean I should separate my images and javascript, and my magento files into 2 different hosts?
     
  5. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    First optimization: Go with a VPS or pay a premium for shared hosting on a magento optimized server.
    Second: Rewrite the queries to be less intensive.
    Third: Remove all unneeded code/modules.
    Fourth: Enable caching.


    Magento is similar to using a dump truck when you only need to move a handful of dirt. Very slow, very inefficient. Unless you're good with server management and coding, I'd either just hire someone to optimize it for you, or switch to a different cart system.
     
  6. Expertpeon

    Expertpeon Elite Member

    Joined:
    Apr 22, 2011
    Messages:
    1,959
    Likes Received:
    1,187
    Get an Nginx sharded plan for about $3-4/month and be done with it.
     
  7. creativepotion

    creativepotion Regular Member

    Joined:
    Jun 23, 2012
    Messages:
    305
    Likes Received:
    19
    Thanks for the advice guys. So I guess one of the best option is really to dump my existing hostgator plan and move on to something else? Such as VPS or an optimized magento plan..?
     
  8. mistachewy

    mistachewy Junior Member

    Joined:
    Mar 31, 2008
    Messages:
    122
    Likes Received:
    33
    Magento is a huge resource hog so shared hosting will not be enough. If you do not have a large catalog, a VPS may be okay but you are better off running it on a dedicated server. Another option is to host it on a service like amazon. I am running 4 sites on magento right now and have not had too many problems with the amazon cloud services.

    You will want to get someone that is familiar with server configurations for magento because that will make a large difference also. For small improvements, you can use the full page caching in magento. There are also several 3rd party cache extension which do a great job. You may want to look into changing to a flat catalog. That could also help with speeding it up a little.
     
  9. creativepotion

    creativepotion Regular Member

    Joined:
    Jun 23, 2012
    Messages:
    305
    Likes Received:
    19
    I have looked into the full page cache plugin for magento
    That addon is $349.99 :(. Unfortunately, thats out of my budget at the moment.
     
  10. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,147
    There 's an open source redis caching plugin and you can get external free hosting since you don't have a vps to install redis. After 10 seconds in google: http://redis4you.com/

    Will you see improvement? Probably - Lots of it? Not really because the redis server will be on a machine somewhere in the internet away from your site and that will add a delay.

    And then there 's always warez :eek:
     
  11. Stizerg

    Stizerg Power Member

    Joined:
    Oct 23, 2011
    Messages:
    611
    Likes Received:
    167
    5 years ago I bought web hosting for one year from netregistry. com.au. I paid $250. Website was so slow that people couldn't wait for it to appear on the screen. After 2 month of struggling I changed hosting and was very happy. Of course I lost $200, but it's better then siting without orders.
    Register for Amazon Web Services here: http://aws.amazon.com
    Sign-up for CloudFront
    Create new distribution making custom origin your website and alternate domain name to subdomain of your site (like cdn1.mydomain.com).
    At your hosting you need to create subdomain cdn1 with CNAME to actual CloudFront distribution (like cdn1.mydomain.com CNAME dyjgrsdhfacx2.cloudfront.net)
    Now, at your website, change all addresses for all static content from www.mydomain.com to cdn1.mydomain.com
    CloudFront will take all content from your website and serve it to your visitors around the world.
    For the first time it looks difficult, but then you'll love it.
     
    Last edited: Nov 14, 2012
  12. creativepotion

    creativepotion Regular Member

    Joined:
    Jun 23, 2012
    Messages:
    305
    Likes Received:
    19
    Will this have an impact on SEO?
     
  13. Stizerg

    Stizerg Power Member

    Joined:
    Oct 23, 2011
    Messages:
    611
    Likes Received:
    167
    Did you mean using of CDN?
    I haven't notice changes in ranking, but g00gle read pages faster and more often.