Merge pull request #1148 from umbraco/temp-U4-7040

U4-7040 - Fix bug with permissions cache refresh
This commit is contained in:
Sebastiaan Janssen
2016-03-02 15:03:47 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ namespace Umbraco.Web.Cache
userCache.Result.ClearCacheItem(RepositoryBase.GetCacheIdKey<IUser>(id));
if (UserPermissionsCache)
UserPermissionsCache.Result.ClearCacheItem(string.Format("{0}{1}", CacheKeys.UserPermissionsCacheKey, id));
UserPermissionsCache.Result.ClearCacheByKeySearch(string.Format("{0}{1}", CacheKeys.UserPermissionsCacheKey, id));
base.Remove(id);
}

View File

@@ -46,7 +46,7 @@ namespace Umbraco.Web.Cache
public override void Remove(int id)
{
if (UserPermissionsCache)
UserPermissionsCache.Result.ClearCacheItem(string.Format("{0}{1}", CacheKeys.UserPermissionsCacheKey, id));
UserPermissionsCache.Result.ClearCacheByKeySearch(string.Format("{0}{1}", CacheKeys.UserPermissionsCacheKey, id));
base.Remove(id);
}