Files
Umbraco-CMS/src/Umbraco.Core/CacheHelperExtensions.cs

24 lines
587 B
C#
Raw Normal View History

using Umbraco.Core.Cache;
namespace Umbraco.Core
{
/// <summary>
/// Extension methods for the cache helper
/// </summary>
public static class CacheHelperExtensions
{
public const string PartialViewCacheKey = "Umbraco.Web.PartialViewCacheKey";
/// <summary>
/// Clears the cache for partial views
/// </summary>
/// <param name="appCaches"></param>
public static void ClearPartialViewCache(this AppCaches appCaches)
{
appCaches.RuntimeCache.ClearByKey(PartialViewCacheKey);
}
}
}