Fixes: #U4-2041, #U4-2040 - user cache is not invalidated when permissions change across LB environments, also streamlined how caching is handled in

these classes which now use the standardized events way to do things. Fixes a performance issue and ensures that the cache is not invalidated for 'micro'
operations during permission changes.
This commit is contained in:
Shannon Deminick
2013-04-04 00:30:28 +06:00
parent 2a7e493c74
commit c5e88ef69f
4 changed files with 246 additions and 77 deletions

View File

@@ -22,6 +22,11 @@ namespace Umbraco.Web.Cache
public static void RefreshUserCache(this DistributedCache dc, int userId)
{
dc.Refresh(new Guid(DistributedCache.UserCacheRefresherId), userId);
}
public static void RefreshAllUserCache(this DistributedCache dc)
{
dc.RefreshAll(new Guid(DistributedCache.UserCacheRefresherId));
}
#endregion