diff --git a/src/Umbraco.Web/Cache/CacheRefresherEventHandler.cs b/src/Umbraco.Web/Cache/CacheRefresherEventHandler.cs
index 4933653edf..fcbc17600c 100644
--- a/src/Umbraco.Web/Cache/CacheRefresherEventHandler.cs
+++ b/src/Umbraco.Web/Cache/CacheRefresherEventHandler.cs
@@ -84,25 +84,7 @@ namespace Umbraco.Web.Cache
///
///
static void ContentTypeServiceSavedContentType(IContentTypeService sender, Core.Events.SaveEventArgs e)
- {
- //NOTE: This needs to be put in the Service layer...
-
- //var needsContentRefresh = e.SavedEntities.Any(contentType =>
- // {
- // //before we send the call to update the cache, we need to determine if we need to refresh the xml content
- // //in the database. This is to be done when:
- // // - a content type changes it's alias
- // // - if a content type has it's property removed
- // //here we need to check if the alias of the content type changed or if one of the properties was removed.
- // var dirty = contentType as IRememberBeingDirty;
- // return dirty != null && (dirty.WasPropertyDirty("Alias") || dirty.WasPropertyDirty("HasPropertyTypeBeenRemoved"));
- // });
-
- ////if we need to refresh the content cache, we need to re-create the xml content in the database before sending out
- ////the request to refresh the application cache
- //ApplicationContext.Current.Services.ContentService.RePublishAll();
-
- //now send the cache refresh call!
+ {
e.SavedEntities.ForEach(contentType => DistributedCache.Instance.RemoveContentTypeCache(contentType));
}
diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentTypeControlNew.ascx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentTypeControlNew.ascx.cs
index 1bf050cf64..6e6cc43347 100644
--- a/src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentTypeControlNew.ascx.cs
+++ b/src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentTypeControlNew.ascx.cs
@@ -194,11 +194,6 @@ namespace umbraco.controls
// reload content type (due to caching)
LoadContentType();
- // Only if the doctype alias changed, cause a regeneration of the xml cache file since
- // the xml element names will need to be updated to reflect the new alias
- if (docTypeAliasChanged)
- RegenerateXmlCaches();
-
BindDataGenericProperties(true);
// we need to re-bind the alias as the SafeAlias method can have changed it
@@ -236,16 +231,7 @@ namespace umbraco.controls
_contentType = new ContentType(docTypeId);
}
}
-
- ///
- /// Regenerates the XML caches. Used after a document type alias has been changed.
- ///
- private void RegenerateXmlCaches()
- {
- Document.RePublishAll();
- library.RefreshContent();
- }
-
+
///
/// Updates the Node in the Tree
///