private void ClearCaches()
 {
     ApplicationContext.Current.ApplicationCache.ClearPartialViewCache();
     XmlPublishedContent.ClearRequest();
     DistributedCache.Instance.ClearAllMacroCacheOnCurrentServer();
     DistributedCache.Instance.ClearXsltCacheOnCurrentServer();
     ClearAllIsolatedCacheByEntityType <PublicAccessEntry>();
 }
 /// <summary>
 /// Refreshes the cache for the node with specified id
 /// </summary>
 /// <param name="id">The id.</param>
 public override void Refresh(int id)
 {
     ApplicationContext.Current.ApplicationCache.ClearPartialViewCache();
     content.Instance.UpdateDocumentCache(id);
     XmlPublishedContent.ClearRequest();
     DistributedCache.Instance.ClearAllMacroCacheOnCurrentServer();
     DistributedCache.Instance.ClearXsltCacheOnCurrentServer();
     base.Refresh(id);
 }
 public override void Remove(IContent instance)
 {
     ApplicationContext.Current.ApplicationCache.ClearPartialViewCache();
     content.Instance.ClearDocumentCache(new Document(instance), false);
     XmlPublishedContent.ClearRequest();
     DistributedCache.Instance.ClearAllMacroCacheOnCurrentServer();
     DistributedCache.Instance.ClearXsltCacheOnCurrentServer();
     ClearAllIsolatedCacheByEntityType <PublicAccessEntry>();
     base.Remove(instance);
 }
 /// <summary>
 /// Refreshes all nodes in umbraco.
 /// </summary>
 public override void RefreshAll()
 {
     content.Instance.RefreshContentFromDatabase();
     XmlPublishedContent.ClearRequest();
     base.RefreshAll();
 }