Streamlines how Template cache gets invalidated - ensures Save() is called on templates where it was needed,

cache now gets invalidated on events.
This commit is contained in:
Shannon Deminick
2013-02-07 05:26:53 +06:00
parent cf8a0728d8
commit d93ca26181
9 changed files with 74 additions and 50 deletions

View File

@@ -109,12 +109,6 @@ namespace Umbraco.Web.WebServices
{
t.Save();
// Clear cache in rutime
if (UmbracoSettings.UseDistributedCalls)
DistributedCache.Instance.RefreshTemplateCache(t.Id);
else
ApplicationContext.Current.ApplicationCache.ClearCacheForTemplate(t.Id);
return Success(ui.Text("speechBubbles", "templateSavedText"), ui.Text("speechBubbles", "templateSavedHeader"));
}
catch (Exception ex)