Developer forum

Forum » Dynamicweb 10 » Cannot set /Globalsettings/Ecom/Picture/Patterns/UseCaching

Cannot set /Globalsettings/Ecom/Picture/Patterns/UseCaching

Anders Ebdrup
Reply

Dear DynamicWeb,

 

It appears that the setting /Globalsettings/Ecom/Picture/Patterns/UseCaching is deprecated, yet it is still actively referenced in classes such as ImagePatternManager. In our experience, enabling this setting is crucial for achieving acceptable performance when working with a large number of images.

Given its continued relevance, I suggest one of the following:

  1. Default the setting to true, as long as it is still being used internally.

  2. Expose the setting in the administration UI, so it can be managed more easily.

  3. Fully deprecate it, but ensure that the underlying performance benefits are preserved.

Looking forward to your feedback.

Best regards, Anders


Replies

 
Anders Ebdrup
Reply

Dear DynamicWeb,

 

Any thoughts about this missing setting in the administration?

 

Best regards, Anders

 
Anders Ebdrup
Reply

Any update on this one? 

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Anders

I have added it to the UI for now: https://dev.azure.com/dynamicwebsoftware/Dynamicweb/_workitems/edit/24501

We have an old task deprecating the setting and disable cache by default. But seems like that was implemented wrong.

For now re-introduced in the UI.

 

Votes for this answer: 1
 
Anders Ebdrup
Reply

Sounds great, because the server execution time goes from 9.636 ms to 921 ms when this setting is enabled according to the debug execution table, so for now it has a really big impact not being able to change this setting as the default value is false

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Ok - how many images do you have?

I think the talk around this is to use the scheduled checkin tool - because it is better in situations with folders with many images - it is difficult to do fast.

 
Anders Ebdrup
Reply

The client has 10143 images in the same folder. And thanks for the tip with the checkin tool :-)

 

You must be logged in to post in the forum