In one of my project, I have used "mydocument.publish(createdUser);umbraco.library.UpdateDocumentCache( mydocument .Id)" for publishing. But this 2 lines of code takes 20 to 30sec for execution.
So i replace this two line of code with umbraco.library.RefreshContent() . It takes only millisecinds.
The problem is that , in one of my page , we have taken this node as "myNode = Node.GetCurrent();”, it return previous data(not updated one). But in other page we have taken this node as" Document mydoc= new Document(nodeid);” ,it returns updated one.
Please help me by saying why this show a strange behaviour.
Publish take time
Please help anyone
In one of my project, I have used "mydocument.publish(createdUser);umbraco.library.UpdateDocumentCache( mydocument .Id)" for publishing. But this 2 lines of code takes 20 to 30sec for execution.
So i replace this two line of code with umbraco.library.RefreshContent() . It takes only millisecinds.
The problem is that , in one of my page , we have taken this node as "myNode = Node.GetCurrent();”, it return previous data(not updated one). But in other page we have taken this node as" Document mydoc= new Document(nodeid);” ,it returns updated one.
Please help me by saying why this show a strange behaviour.
Thanks
is working on a reply...