Merge branch '7.1.0' of https://github.com/umbraco/Umbraco-CMS into 7.1.0

This commit is contained in:
Sebastiaan Janssen
2014-03-12 00:33:03 +01:00

View File

@@ -105,9 +105,12 @@ namespace Umbraco.Web.Cache
payloads.ForEach(payload =>
{
ApplicationContext.Current.ApplicationCache.RuntimeCache
.ClearCacheByKeySearch(string.Format("{0}.{1}", typeof(IMemberGroup).FullName, payload.Name));
RuntimeCacheProvider.Current.Delete(typeof(IMemberGroup), payload.Id);
if (payload != null)
{
ApplicationContext.Current.ApplicationCache.RuntimeCache
.ClearCacheByKeySearch(string.Format("{0}.{1}", typeof(IMemberGroup).FullName, payload.Name));
RuntimeCacheProvider.Current.Delete(typeof(IMemberGroup), payload.Id);
}
});
}