Facade - cleanup

This commit is contained in:
Stephan
2016-06-02 16:40:02 +02:00
parent 03107dc82b
commit c85626a4f1
2 changed files with 178 additions and 236 deletions

View File

@@ -1088,9 +1088,6 @@ namespace Umbraco.Web.PublishedCache.NuCache
private void OnContentTypeRefreshedEntity(IContentTypeService sender, ContentTypeChange<IContentType>.EventArgs args)
{
// handling a transaction event that does not play well with cache...
//RepositoryBase.SetCacheEnabledForCurrentRequest(false); // fixme !!
const ContentTypeChangeTypes types // only for those that have been refreshed
= ContentTypeChangeTypes.RefreshMain | ContentTypeChangeTypes.RefreshOther;
var contentTypeIds = args.Changes.Where(x => x.ChangeTypes.HasTypesAny(types)).Select(x => x.Item.Id).ToArray();
@@ -1100,9 +1097,6 @@ namespace Umbraco.Web.PublishedCache.NuCache
private void OnMediaTypeRefreshedEntity(IMediaTypeService sender, ContentTypeChange<IMediaType>.EventArgs args)
{
// handling a transaction event that does not play well with cache...
//RepositoryBase.SetCacheEnabledForCurrentRequest(false); // fixme !!
const ContentTypeChangeTypes types // only for those that have been refreshed
= ContentTypeChangeTypes.RefreshMain | ContentTypeChangeTypes.RefreshOther;
var mediaTypeIds = args.Changes.Where(x => x.ChangeTypes.HasTypesAny(types)).Select(x => x.Item.Id).ToArray();
@@ -1112,9 +1106,6 @@ namespace Umbraco.Web.PublishedCache.NuCache
private void OnMemberTypeRefreshedEntity(IMemberTypeService sender, ContentTypeChange<IMemberType>.EventArgs args)
{
// handling a transaction event that does not play well with cache...
//RepositoryBase.SetCacheEnabledForCurrentRequest(false); // fixme !!
const ContentTypeChangeTypes types // only for those that have been refreshed
= ContentTypeChangeTypes.RefreshMain | ContentTypeChangeTypes.RefreshOther;
var memberTypeIds = args.Changes.Where(x => x.ChangeTypes.HasTypesAny(types)).Select(x => x.Item.Id).ToArray();