Copied to clipboard

Flag this post as spam?

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

  • Richard Thompson 100 posts 336 karma points
    Oct 19, 2015 @ 14:06
    Richard Thompson

    Regenerating the XML cache

    I'm using the API to set some property values on some documents. This all works fine and I can see the correct nodes are assigned to my documents content picker in the back office.

    My documents have a template which displays the content of the nodes assigned to the relevant properties. None of the assigned content shows up in my view until I republish the entire site as the property values are missing from the XML cache.

    I've tried the following lines of code to try and force the XML cache to be regenerated:

    contentService.RebuildXmlStructures(new int[] { TYPE_1, TYPE_2 });

    These lines however don't force the XML cache to be updated. Does anybody have any ideas how I can do this through the API? It's an Umbraco 7.3 site.

  • Richard Thompson 100 posts 336 karma points
    Jan 22, 2016 @ 14:01
    Richard Thompson

    It turns out you can't clear the cache from the console. What you need to do is use the WebApi and you can rebuild the cache from there.

Please Sign in or register to post replies

Write your reply to: