Fixes: #U4-2043 - User Type cache is not invalidated in LB scenarios
This commit is contained in:
@@ -13,6 +13,23 @@ namespace Umbraco.Web.Cache
|
||||
/// </summary>
|
||||
internal static class DistributedCacheExtensions
|
||||
{
|
||||
#region User type cache
|
||||
public static void RemoveUserTypeCache(this DistributedCache dc, int userTypeId)
|
||||
{
|
||||
dc.Remove(new Guid(DistributedCache.UserTypeCacheRefresherId), userTypeId);
|
||||
}
|
||||
|
||||
public static void RefreshUserTypeCache(this DistributedCache dc, int userTypeId)
|
||||
{
|
||||
dc.Refresh(new Guid(DistributedCache.UserTypeCacheRefresherId), userTypeId);
|
||||
}
|
||||
|
||||
public static void RefreshAllUserTypeCache(this DistributedCache dc)
|
||||
{
|
||||
dc.RefreshAll(new Guid(DistributedCache.UserTypeCacheRefresherId));
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region User cache
|
||||
public static void RemoveUserCache(this DistributedCache dc, int userId)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user