Developer forum

Forum » Feature requests » After dataimport subscriber

After dataimport subscriber

Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

 

We are often missing a notification subscriber which can tell us that data is imported in e.g. the Dynamicwebprovider

                    sqlTransaction.Commit();
                 // Please add a subscriber here!
                    if (!DisableCacheClearing)
                    {
                        Ecommerce.Common.Application.KillAll();
                        AssortmentHandler?.RebuildAssortments();
                    }
                    UpdateProductIndex(job);
                    if (!DisableCacheClearing)
                    {
                        Ecommerce.Services.Discounts.ClearCache();
                    }
 
We need this step to be able to manipulate data before cache is cleared, assortments are rebuilt and indexes are updated.
Right now we have only the JobFinished-observer, but this is often to late in the process to make the desired data changes.
Best begards, Anders

Replies

 
Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

+1

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

+1 This is a very common scenario and having a subscriber at that point would solve a lot of problems.

Imar

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

+1

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

+1

 
Suzi Louring
Reply

+1

 
Lars Hejgaard Sørensen Dynamicweb Employee
Lars Hejgaard Sørensen
Reply

Afternoon everyone,

I wrote this post about how to avoid putting too many extensions into your integration flow.

https://doc.dynamicweb.com/community/devblog?ThreadID=87351&PID=8967

Hope this can help is some of your challenging situations.

Br.

Lars