Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • João Ferreira 19 posts 40 karma points
    Jul 29, 2013 @ 14:40
    João Ferreira
    0

    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

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 29, 2013 @ 15:16
    Søren Spelling Lund
    0

    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.

  • João Ferreira 19 posts 40 karma points
    Jul 29, 2013 @ 15:43
    João Ferreira
    0

    Ok, I understand, I will change the pipeline. So how do I delete the current existing ghost ones?

    Thank you.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 29, 2013 @ 15:48
    Søren Spelling Lund
    0
    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.
    Hope this helps.
  • João Ferreira 19 posts 40 karma points
    Jul 29, 2013 @ 15:50
    João Ferreira
    0

    Great, done. Thank you Søren

Please Sign in or register to post replies

Write your reply to:

Draft