Fixes: #U4-2044, #U4-2048

This commit is contained in:
Shannon Deminick
2013-04-04 21:57:41 +06:00
parent f747f69c62
commit 87c904cc96
10 changed files with 218 additions and 26 deletions

View File

@@ -13,6 +13,20 @@ namespace Umbraco.Web.Cache
/// </summary>
internal static class DistributedCacheExtensions
{
#region Application tree cache
public static void RefreshAllApplicationTreeCache(this DistributedCache dc)
{
dc.RefreshAll(new Guid(DistributedCache.ApplicationTreeCacheRefresherId));
}
#endregion
#region Application cache
public static void RefreshAllApplicationCache(this DistributedCache dc)
{
dc.RefreshAll(new Guid(DistributedCache.ApplicationCacheRefresherId));
}
#endregion
#region User type cache
public static void RemoveUserTypeCache(this DistributedCache dc, int userTypeId)
{