Copied to clipboard

Flag this post as spam?

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


  • Dan Sørensen 102 posts 327 karma points
    Nov 12, 2014 @ 16:48
    Dan Sørensen
    0

    deleted node still show in code

    Im getting all children of page node. and then looping them to get the database document item, but then I get an error saying that the node dosn't exsist and if I look in backend the node is no longer there so it's deleted long ago but still show in the list im getting.

    My code

    List<umbraco.interfaces.INode> currentNodes = parentNode.ChildrenAsList.OrderBy(x => x.Name).ToList();
    
    foreach(var item in currentNodes)
    {
           Document document = new Document(item.Id);
           // do some stuff to document
    } 
    

    I have tried republishing site because I was thinking some kind of cash problem. but that didn't help.

  • Dan Sørensen 102 posts 327 karma points
    Nov 12, 2014 @ 17:11
    Dan Sørensen
    100

    Just looked in umbraco.config and it is still in here but. so the node is still cashed but when i Republish entire site its not going away -_-

Please Sign in or register to post replies

Write your reply to:

Draft