Copied to clipboard

Flag this post as spam?

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


  • jeeshna 6 posts 26 karma points
    Aug 17, 2012 @ 09:30
    jeeshna
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft