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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user