Files
Umbraco-CMS/src/Umbraco.Web/Cache/MacroCacheRefresher.cs
Shannon Deminick 9f7347a4f5 Updated LazyManyObjectsResolverBase to support removal. Moves cache refreshers to proper namespace and obsoletes old ones. Obsoletes
a couple of library cache clearing methods and moves them to CacheHelperExtensions. Fixes #U4-1653 for 6.1 and updates ExamineEvents to
ensure that Examine re-indexes media on all of the correct events (including Trashed). Changes for Caching are being done to begin work with
CD-148
2013-02-06 09:53:13 +06:00

44 lines
858 B
C#

using System;
using umbraco;
using umbraco.interfaces;
namespace Umbraco.Web.Cache
{
public class MacroCacheRefresher : ICacheRefresher
{
public string Name
{
get
{
return "Macro cache refresher";
}
}
public Guid UniqueIdentifier
{
get
{
return new Guid("7B1E683C-5F34-43dd-803D-9699EA1E98CA");
}
}
public void RefreshAll()
{
}
public void Refresh(Guid id)
{
}
void ICacheRefresher.Refresh(int id)
{
macro.GetMacro(id).removeFromCache();
}
void ICacheRefresher.Remove(int id)
{
macro.GetMacro(id).removeFromCache();
}
}
}