4 simple ways to speed up your Magento site
Magento site speed part 2!
Slow websites are a massive turn off for so many site users. The thought of having to wait mere seconds for a website to load is so painful, users tend to just go elsewhere if you’re not catering for their needs. With this in mind, it reiterates the importance of a fast website. If you’d like to look at part 1 of my site speed article, you can check it out here, if not then let’s get into things! Here are 4 simple ways to speed up your Magento site:
Enable flat categories and products:
Having large amounts of categories in the back end can be annoying to deal with. If you look at Magento’s tables, you’d see a lot of “catalog_product_…” or “catalog_category_…”. Having a lot of these means your website is asking for a lot of actions to be completed for each product and category. This affects your page load time for each page you pull up. To lighten the load and ensure it takes less actions to load products/categories go to the Magento admin system > Configuration > Catalog Frontend. Change “Use flat catalog category” and “Use flat catalog product” to “yes”.
Every time you make a request on your website, Magento looks for the relevant file in one of four directories:
- lib/ (bet you were expecting “app” something, right?)
Magento compilation resolves the issue of having to go through four different directories. Instead it copies all of the class definitions and code which mention “app/code” into one single directory. This means that Magento then needs to only search one directory instead of four for each request that is made.
Avoid unnecessary redirects:
This one is pretty obvious for some, but you’d be surprised at how this wouldn’t cross the mind of some people. Redirects are a good way of making sure visitors are not landing on obsolete versions of your site. Well designed redirects are also great when you release a new version of your website as they help your position on search engines. However, this is considering you don’t have too many redirects. Whilst a redirect or two may help with SEO, too many redirects will slow your page down and, ultimately, will dissuade people to stay on your site. With this in mind, you may lose Google ranking (as Google ranks on site speed now too). So the lesson here is use redirects as less as possible.
Well that concludes this Magento Monday article, if anyone would like to tell us a few methods they personally like to use when combating site speed, comment below. Before you go, there is a useful tool which you can use from Google which checks your site speed. If you want to give it a try, here is the link to it. Otherwise, have a great Monday!