Jump to content

inShop optimization


Recommended Posts

Hello, i just starting opmizing my shop.

I started with the default settings about setting the correct option in BO => Performance but thats not enought.. 

 

So i started digging in debuging mode..

I figured that in order to render a category view, more than 800queries are required.

As for product view.. 792 queries ..

 

Arent they tooo much ? thats a default prestashop setup or am i doing something wrong?

Link to comment
Share on other sites

  On 11/4/2014 at 10:57 AM, joemartin said:

Some modules are not optimised at all...

You should also enable profiling in /config/defines.inc.php to see where it spends most time.

 

Hi joemartin, thank for your reply.

I am looking on it right now.. 

Here is a screenshot

 

I started by trying to figure what makes displayHeader to process so much data.. i went to BO and on displayHeader hook there are 4-5 modules loaded like theme configuration (this is required is order page to be rendered correctly..

 

Any hints?

Link to comment
Share on other sites

I am testing the caching options.. First File System and now apc (any idea how i can estimate how much ram i need to set up in apc?)

 

I am stacked with the logic of cache..

While i had File System cache enabled in localhost testing, i mentioned that the files in /cache/cachefs are multiplied on every refresh i make on the site no matter if its the same page or not. Since there arent any changes in that product page why do the number of files in the cache is getting bigger? And if new files are generated for the last cached version, why the previous ones are not deleted? Is this the cache logic?

 

Same logic is working with apc or memcache? 

 

  On 11/4/2014 at 1:17 PM, joemartin said:

What is the URL of your site?

I just send you a pm.

Link to comment
Share on other sites

  On 11/4/2014 at 8:17 PM, HaCos said:

I am testing the caching options.. First File System and now apc (any idea how i can estimate how much ram i need to set up in apc?)

 

I am stacked with the logic of cache..

While i had File System cache enabled in localhost testing, i mentioned that the files in /cache/cachefs are multiplied on every refresh i make on the site no matter if its the same page or not. Since there arent any changes in that product page why do the number of files in the cache is getting bigger? And if new files are generated for the last cached version, why the previous ones are not deleted? Is this the cache logic?

 

Same logic is working with apc or memcache? 

 

I just send you a pm.

I don't know how this cache is working, this is a PHP code cache.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...