Take the 2-minute tour ×
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It's 100% free, no registration required.

I am working on a site where the home page loads pretty quickly however the categories pages are too slow.

http://tools.pingdom.com/fpt/#!/cMPX60/http://estiloclothing.co.uk/mens.html

This report shows that the "Wait" time is the highest, we have tried many options available with us to debug this, but failed. Can anyone give me pointers as to where this could be wrong. I can add much more details, however at this stage even I am not sure what may be needed to get it in the right direction. Kindly let me know and I shall provide more details.

share|improve this question

4 Answers 4

You need to profile and find where the actual bottlenecks are. If your TTFB (time to first byte) is 32 seconds (wowzers) it means that Magento is taking a long time to render the page to be delivered to the browser.

I wholly agree with @MageWH that the issue is likely that you're loading product swatches. However, I see that these are all media cache images and that leads me to believe that you're probably calling Mage::getModel('catalog/product') in a loop. This is likely the source of your problem.

Vinai Kopp has a writeup about why you wouldn't want to do this and potential ways to avoid it:

http://vinaikopp.com/2014/06/09/preloading-for-scalabiliy/

Magento's Expert Consulting Group (ECG) also has a writeup about best practices to apply (and antipatterns to avoid) when building your store:

http://magento.com/blog/best-practices/top-5-magento-coding-recommendations-optimize-site-performance

Liberally employing some block caches and a full page cache will only mask your real problem here. I think you should use some tools from ECG to find other potential problems:

https://github.com/magento-ecg/coding-standard

https://github.com/magento-ecg/magniffer

Best of luck!

share|improve this answer
    
Thanks for this detailed comment, I shall go through each one of them and try and see if this fixes –  skv Jul 18 at 18:17

The page is slow because you are showing the color for every products and magento is very slow when has to work with the attributes

My recommendation is to remove the color swatch from the category page or install a cache system

share|improve this answer
    
I don't disagree with this. –  philwinkle Jul 18 at 17:41
    
I have checked through my admin, there are no plugins specifically doing this, can you point me at where I could check for any default settings which may be enabling this –  skv Jul 18 at 19:03

My debug way would be,

disable all plugins in community, and look if the speed is better.

disable all plugins in local, and look if the speed is better.

Go back to the blank / default theme, and look if the speed is better.

I see that you are loading a lot of configurable products, in Magento there is a problem with the function isSalable it makes the products pages very slow. For a solution look to this, http://turnkeye.com/blog/magento-performance-optimization-configurable-products-2/

share|improve this answer

i don't know exactly what options you have enabled but these are compulsory:

  1. enable flat product and category tables
  2. enable full page cache option
  3. enable compilation option

(I have assumed your hardware is optimally configured and server setup is capable of running magento efficiently)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.