I'm having an issue of cached products that have already been deleted, don't appear on the uCommerce umbraco section but come as products when I iterate trought Product.All().
What should I do to clear this "cache" and prevent it to happen again?
You can find all categories that have the deleted flag set and categories not deleted that might live in a deleted catalog and remove the products associated to those categories.
Persistent products
Good afternoon,
I'm having an issue of cached products that have already been deleted, don't appear on the uCommerce umbraco section but come as products when I iterate trought Product.All().
What should I do to clear this "cache" and prevent it to happen again?
João Ferreira
Hi João,
How are you deleting the products?
If you delete a category or catalog the products will stick around because they might "live" in other categories and catalogs.
If you want to get rid of the completely you can hook into the SaveCatalog and SaveCategory pipelines to override this behavior.
Hope this helps.
Ok, I understand, I will change the pipeline. So how do I delete the current existing ghost ones?
Thank you.
Great, done. Thank you Søren
is working on a reply...