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