Question

I have a prestashop v1.5.6 installed over PHP v5.3.10 on MySQL v5.5.35. The products and categories has been imported directly to the database. The categories module runs sometimes very slow. The web almost have no traffic. (http://tintaadomicilio.es)

I have check the integrity of all categories in database. The left and night fields seems to be fine. Also, there are not categories without parent. I have check querys, mysql variables, cache, etc... There are no prestashop query in mysql-slow.log Also, the php5.log log do not contains any relevant information.

I don't know what to do. My server is a dedicated one, i manage it personally. It have a optimal performance, other webs runs fine. I migrate recently to a new one (ubuntu 12.04 LTS), for other reasons, but in the old server happened the same. The categories (even the page that show the final product) runs slow some clicks, extremely slow other clicks, and sometimes runs fine. Its happens randomly.

I need help.

Was it helpful?

Solution

I found it. It was the category module. I have 5600 categories. If the category module are configured to show a deep of 4, its takes so long. Also, i have the category tree in the top horizontal menu, so it generates too code if not cached. Removing the categories from the top menu and limiting to deep of 3 in the left categories module, the server response time has decreased from 4.0 seconds to 0.2 seconds.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top