Streamlines the content type cache refreshing, leaving some of the legacy cache clearing but that shouldn't really have an effect, with these new changes it should be guaranteed that the distributed cache is executed always for Doc, media and member types.

This commit is contained in:
Shannon
2014-01-28 12:13:27 +11:00
parent f2b7e27b34
commit 15d7443c61
7 changed files with 38 additions and 49 deletions

View File

@@ -54,21 +54,7 @@ namespace Umbraco.Core.Persistence.Repositories
yield return dto.ContentTypeNodeId;
}
}
/// <summary>
/// We need to override this method to ensure that any content cache is cleared
/// </summary>
/// <param name="entity"></param>
/// <remarks>
/// see: http://issues.umbraco.org/issue/U4-1963
/// </remarks>
public override void PersistUpdatedItem(IEntity entity)
{
InMemoryCacheProvider.Current.Clear(typeof(IContent));
RuntimeCacheProvider.Current.Clear(typeof(IContent));
base.PersistUpdatedItem(entity);
}
protected void PersistNewBaseContentType(ContentTypeDto dto, IContentTypeComposition entity)
{
//Logic for setting Path, Level and SortOrder