It looks like you're using the
Strathweb.CacheOutput
library. Looking at the documentation, the value passed to
InvalidateCacheOutput
needs to be the method name whose cache you want to invalidate. You don't have a method called
y
on the
addController
, so the attribute does nothing.
Try:
[HttpPost]
[InvalidateCacheOutput(nameof(abController.getY), typeof(abController))]
[Route("api/y/add", Name = "add")]
public async Task<IHttpActionResult> addY([FromUri] addYRequest request) ...
GitHub - filipw/Strathweb.CacheOutput: ASP.NET Web API CacheOutput - library to allow you to cache the output of ApiControllers[
^]