Developer forum

Forum » Ecommerce - Standard features » Cache on pages containing Ecom or Cart module

Cache on pages containing Ecom or Cart module

Tom Kamphuis
Reply

Hi guys,

Working on a project containing multiple shops and area's we're encountering long rendering times for pages containing either an Ecom or CartV2 module. When calling a page a user has to wait for a long time before getting respons from the server, this can take as long as 12-18 seconds per request! It's clear our customer isn't very happy with these kind of request times but we can't find the best way to fix this issue.

First of all it's hard to find good documentation on caching in Dynamicweb. Using the searchbox in this portal certainly isn't of any help. Secondly, running dotTrace we get insights in the page rendering and it looks like we get some very long queries concerning counting products (for example, Dynamicweb.eCommerce.Products.Product.GetProductsCountByGroups() takes more than 4 seconds to complete, but it's called at least twio times where the second time the delay is another two seconds).

Is there any way in fixing these problems, in caching more information or some other way to make the application more responsive to requests?

Cheers,
Tom


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Tom

12-18 seconds something is seriously wrong on your implementation.

The GetProductsCountByGroups time sounds like a broken database index or something like that. We just received a case on the performance on that from you and we are looking into that now.

But mail me a link to the page, and I'll have a look at the page and see if I can find the problem.

Using Razor? Make sure you DO NOT have TemplateTags() in your code - not even commented out.

BR Nicolai

Votes for this answer: 1
 
Tom Kamphuis
Reply

Hi Nicolai,

Thanks for your quick answer. Checked it and it seems to be a problem regarding commented out TemplateTags() calls! Not sure though this is also a problem in the other case filed by one of my collegues.

Cheers,
Tom

 

You must be logged in to post in the forum