I'm importing products into a Sitecore uCommerce site and referencing these new products using the uCommerce Sitecore data provider.
The products are successfully imported and show in the uCommerce interface but they don't immediately show in the products bucket (Sitecore/uCommerce/Products).
I've tried:
- ObjectFactory.Instance.Resolve<ICacheProvider>().ClearCache();
- ObjectFactory.Instance.Resolve<ScratchIndexer>().Index();
- Clearing all the sitecore caches (cache.aspx)
but none of these work.
As soon as I recycle the app pool they appear as expected.
Is there something else I need to call from my import code to make the data provider work without a recycle?