I have a repeater where I am listing child nodes using the nodefactory.ChildrenAsTable() and have a delete command which successfully deletes a node.
If I rebind the repeater immediately the deleted item is still show even if I call umbraco.library.RefreshContent(). I tried a response.redirect to the original page instead of rebinding and the item is still shown. If I wait a few seconds and refresh the page manually the deleted item is gone.
My question really is how long should the RefreshContent take to work? Can I immediately rebind the nodefactory to the repeater?
This is becoming quite a problem. I'm deleting content client side and the cache is not updating before I render the refreshed page. Is this normal or am I doing something wrong?
Deleting a node not instant. Is this correct?
I have a repeater where I am listing child nodes using the nodefactory.ChildrenAsTable() and have a delete command which successfully deletes a node.
If I rebind the repeater immediately the deleted item is still show even if I call umbraco.library.RefreshContent(). I tried a response.redirect to the original page instead of rebinding and the item is still shown. If I wait a few seconds and refresh the page manually the deleted item is gone.
My question really is how long should the RefreshContent take to work? Can I immediately rebind the nodefactory to the repeater?
DC
This is becoming quite a problem. I'm deleting content client side and the cache is not updating before I render the refreshed page. Is this normal or am I doing something wrong?
Have you tried turning off the macro's caching by page/personalized to see if this fixes the problem? Also check the cache period on the macro.
Just some thoughts.
-Chris
is working on a reply...