Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
namespace Discovering.Sitecore10.Controllers.Caching
{
public class OutputCacheController : Controller
{
private readonly IOutputCacheService _outputCacheService;
public OutputCacheController(IOutputCacheService outputCacheService)
{
_outputCacheService = outputCacheService;
}
[HttpGet]
public IActionResult Clear()
{
// NOTE: Implement shared secret checking
_outputCacheService.SetLastCacheReload(DateTime.Now);
return Ok();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.