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
44 lines
858 B
C#
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();
|
|
}
|
|
|
|
}
|
|
} |