Changes MediaCacheRefresher to be ICacheRefresher<T> and updates MacroCacheRefresher to use correct

macro object.
This commit is contained in:
Shannon Deminick
2013-03-12 03:11:35 +04:00
parent ec46d65bb4
commit 8d2e466e34
4 changed files with 32 additions and 32 deletions

View File

@@ -181,20 +181,7 @@ namespace Umbraco.Web.Cache
public static void RemoveMacroCache(this DistributedCache dc, int macroId)
{
dc.Remove(new Guid(DistributedCache.MacroCacheRefresherId), macroId);
}
/// <summary>
/// Removes the cache amongst servers for a macro item
/// </summary>
/// <param name="dc"></param>
/// <param name="macro"></param>
public static void RemoveMacroCache(this DistributedCache dc, macro macro)
{
if (macro != null && macro.Model != null)
{
dc.Remove(new Guid(DistributedCache.MacroCacheRefresherId), macro1 => macro1.Model.Id, macro);
}
}
}
/// <summary>
/// Removes the cache amongst servers for a macro item