My content editors are complaining because the content they edit is not being updated immediatly in the browser and it's making their job hard.
I have tried the following in umbracosettings.config to no avail:
<settings>
<content>
<XmlContentCheckForDiskChanges>true</XmlContentCheckForDiskChanges>
<ContinouslyUpdateXmlDiskCache>True</ContinouslyUpdateXmlDiskCache>
What options do i have?
Notes:
- This site is published on Azure hosting
I make calls from my controllers that traverse nodes like this:
public class HomePageController : RenderMvcController { private IServices services; public HomePageController(IServices services) { this.services = services; } public override ActionResult Index(RenderModel model) { var viewModel = this.services.PageService.GetByID(CurrentPage.Id), // return View("~/Views/MVC/Page/Home.cshtml", viewModel); }
and the traversing within the services on root node:
/// <summary> /// The root node is required in getting content by document type. /// </summary> protected IPublishedContent RootNode { get { if( this.contentRootNode == null ) { this.contentRootNode = this.umbracoHelper.TypedContentAtRoot().First(); } return this.contentRootNode; } } protected IEnumerable<IPublishedContent> GetPublishedContent(string documentTypeAlias) { IEnumerable<IPublishedContent> publishedContent = this.RootNode.Descendants().Where(x => x.DocumentTypeAlias == documentTypeAlias); return publishedContent; }