Copied to clipboard

Flag this post as spam?

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


  • Wojciech Tengler 96 posts 199 karma points
    Apr 21, 2016 @ 11:53
    Wojciech Tengler
    0

    Refresh XML of content node and update cache without publication

    I'm just moving to 6.2.5 from 4.7.1 and have problem with new Umbraco API.

    I need to update content properties very often so I change property value then refresh XML and content cache without publication to prevent all events and new content version.

    Is it possible in 6.2.5 API to refresh XML of the node and update content cache?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 22, 2016 @ 06:29
    Dave Woestenborghs
    0

    Hi,

    When you right click your root node of the content tree there is option to "Republish entire site". This does what your a looking for.

    If you want to do this using code that would be a good starting point to see how it is done.

    Dave

  • Wojciech Tengler 96 posts 199 karma points
    Apr 22, 2016 @ 13:00
    Wojciech Tengler
    0

    I know functionality you mentioned but it is not the same what I need to achieve.

    I need to do something like this:

    1. Modify property value of content node.
    2. Generate new XML for this content node.
    3. Save new XML to cmsContentXml table.
    4. Refresh content in application for this node.
  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 22, 2016 @ 13:22
    Dave Woestenborghs
    0

    Hi,

    You can all this using the content service.

    Have a look at the documentation : https://our.umbraco.org/documentation/Reference/Management/Services/ContentService

    Dave

  • Wojciech Tengler 96 posts 199 karma points
    Apr 22, 2016 @ 13:27
    Wojciech Tengler
    0

    There is only one associaded method:

    RebuildXmlStructures(params int[] contentTypeIds)

    which don't allow generate XML for one node.

    I know that I can publish node but as I have mentioned I don't want to do it due to generation a new version of content.

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 22, 2016 @ 13:34
    Dave Woestenborghs
    0

    Hi

    But why you want to update a content item without publishing, but have the published content cache updated ? Seems a bit strange to me.

    Dave

  • Wojciech Tengler 96 posts 199 karma points
    Apr 22, 2016 @ 14:25
    Wojciech Tengler
    0

    Yes it is strange for most of cases but not at our project. I need to change content property very often sometimes for the same node. So I have to omit normal publication due to new version of content which is automatically generated after each publish.

    For example I need change update date of parent node when any child is published.

Please Sign in or register to post replies

Write your reply to:

Draft