Developer forum

Forum » Development » How to prevent FavoriteList being called every time a product is retrieved?

How to prevent FavoriteList being called every time a product is retrieved?

Martijn van Tongeren
Reply

I noticed in the Visual studio Diagonstic tools that everytime I call  GetLoop("Products"); a call is performed to retrieve the FavoriteList from the database (see attachment). We are currently in the process of trying to improve the performance of our application and we want to prevent the favoritelist from being retrieved for every single product and if possible disable the favorite logic because we are not using it at all for our application. We are currently using the 8.8.0.2 version of the dynamicweb. 

CustomerFavoriteLists.PNG

Replies

 
Nicolai Pedersen
Reply

Hi Martin

When running af normal product list, it should not do this. The tag will only be filled (and db called) if the user is logged in and you use that feature in a template tag in the product list template.

Do you have a link to the page that does this?

BR Nicolai

 

You must be logged in to post in the forum