Developer forum

Forum » Development » Preload data or clear data in ProductIndexBuilder

Preload data or clear data in ProductIndexBuilder

Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

 

We are missing a method in our ProductIndexBuilder where we can either preload data before start indexing or clear our caching when ending a build of the product index.

Can that be added?

 

Best regards,

Anders


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

In an IndexBuilder you can do that in the beginning and end of the Build method...

If it is an IndexBuilderExtenderBase, you should be able to do that with a thread static property with a lazy initialization - it will initialize once, and die when the build is over.

BR Nicolai

Votes for this answer: 1
 
Anders Ebdrup
Anders Ebdrup
Reply

Excellent! thank you! :-)

 

You must be logged in to post in the forum