Created
November 2, 2020 14:53
-
-
Save trnktms/ce66edfbb91983ddd1627df1c7d1e37d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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