Copied to clipboard

Flag this post as spam?

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


  • Bogdan 250 posts 427 karma points
    Jun 29, 2010 @ 14:51
    Bogdan
    0

    UpdateDocumentCache question

    Hi,

    I have a user control that "votes" for some nodes. Because it's used for voting, I don't want a rollback version to be saved. If i only do umbraco.library.UpdateDocumentCache(doc.Id); then I see the value is updated in the backend, but the cache doesn't get updated. If before that I put doc.Publish(User.GetUser(0)); then the cache is updated, but also a rollback version is saved. Can I change a nodes' property without having a rollback version? Is there a way to completely disable rollback?

     

    Thank you!

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Jun 30, 2010 @ 08:02
    Richard Soeteman
    0

    Hi,

    When you publish a node a new version is generated. You can use this Unversion project to automatically delete all the previous versions.

    Hope this helps,

    Richard

  • Bogdan 250 posts 427 karma points
    Jun 30, 2010 @ 09:57
    Bogdan
    0

    Thank you for your reply Richard, I'll try that project.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies