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:
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:
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.
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.
https://our.umbraco.org/forum/developers/api-questions/39164-Console-Application-Publishing-Problem#comment-189720
is working on a reply...