Developer forum

Forum » Development » Product catalog cached?

Product catalog cached?

David Löfqvist
Reply

Hi!

Im having issues with the product catalog tree generation.

After a import of data that has several groups and relations that should become nodes in the treeview, not all nodes become visible/added in the tree. I see that the database contains the right data and relations as a newly node that works has. Im thinking its a caching issue and i try to fix that calling some code:

                Dynamicweb.Ecommerce.Common.Application.KillVariantGroups();
                Dynamicweb.Ecommerce.Common.Application.KillVariantOptions();
                Dynamicweb.Ecommerce.Variants.VariantGroupService vgs = new VariantGroupService();
                Dynamicweb.Ecommerce.Products.GroupService gs = new GroupService();
                vgs.ClearVariantGroupsCache();
                vgs.ClearVariantGroupPropertiesCache();
                vgs.ClearOptionValues();
                Dynamicweb.Ecommerce.Products.ProductGroupRelation.ClearCache();
                gs.ClearCache();

But in the end i need to restart the appool to get it to work. After that the Group comes out in the product catalog treeview and on the webbshop. 

Im running rapido and Dynamicweb.dll 9.5.13 version.

Any tips or best practise in dealing with these issues, because i need it to work without restarting the whole webbshop?

Regards, David

 

Replies

 

You must be logged in to post in the forum