Got new MemberGroupService done, completed the MemberService for role based stuff, created a member group cache refresher since we are caching member groups by name (probably should cache others too). Public access stuff changes if a name of a member group is changed which is now done with an event instead of coded into the biz logic.
This commit is contained in:
@@ -237,7 +237,7 @@ namespace Umbraco.Web.Cache
|
||||
|
||||
#region Member cache
|
||||
/// <summary>
|
||||
/// Refreshes the cache amongst servers for a member
|
||||
/// Refreshes the cache among servers for a member
|
||||
/// </summary>
|
||||
/// <param name="dc"></param>
|
||||
/// <param name="memberId"></param>
|
||||
@@ -247,7 +247,7 @@ namespace Umbraco.Web.Cache
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes the cache amongst servers for a member
|
||||
/// Removes the cache among servers for a member
|
||||
/// </summary>
|
||||
/// <param name="dc"></param>
|
||||
/// <param name="memberId"></param>
|
||||
@@ -258,6 +258,29 @@ namespace Umbraco.Web.Cache
|
||||
|
||||
#endregion
|
||||
|
||||
#region Member group cache
|
||||
/// <summary>
|
||||
/// Refreshes the cache among servers for a member group
|
||||
/// </summary>
|
||||
/// <param name="dc"></param>
|
||||
/// <param name="memberGroupId"></param>
|
||||
public static void RefreshMemberGroupCache(this DistributedCache dc, int memberGroupId)
|
||||
{
|
||||
dc.Refresh(new Guid(DistributedCache.MemberGroupCacheRefresherId), memberGroupId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes the cache among servers for a member group
|
||||
/// </summary>
|
||||
/// <param name="dc"></param>
|
||||
/// <param name="memberGroupId"></param>
|
||||
public static void RemoveMemberGroupCache(this DistributedCache dc, int memberGroupId)
|
||||
{
|
||||
dc.Remove(new Guid(DistributedCache.MemberGroupCacheRefresherId), memberGroupId);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Media Cache
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user