38 lines
775 B
C#
38 lines
775 B
C#
|
|
using System;
|
|||
|
|
using Umbraco.Core;
|
|||
|
|
using umbraco.interfaces;
|
|||
|
|
|
|||
|
|
namespace Umbraco.Web.Cache
|
|||
|
|
{
|
|||
|
|
public class MediaLibraryRefreshers : ICacheRefresher
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
public Guid UniqueIdentifier
|
|||
|
|
{
|
|||
|
|
get { return new Guid("B29286DD-2D40-4DDB-B325-681226589FEC"); }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public string Name
|
|||
|
|
{
|
|||
|
|
get { return "Clears Media Cache from umbraco.library"; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void RefreshAll()
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void Refresh(int id)
|
|||
|
|
{
|
|||
|
|
ApplicationContext.Current.ApplicationCache.ClearLibraryCacheForMedia(id, false);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void Remove(int id)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void Refresh(Guid id)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|