Cache not clearing, what am I missing?
Does anyone know why this cache is not clearing?
I am trying to implement simple rate limiting an and old MVC application. If a POST endpoint is hit too many times, return a 500/429.
My approach:
This cache item never expires. The same thing happens if I am using the HttpContext cache approach:
...
etc.
Any idea?
I am testing this by running an external script that hits the end point multiple times. I can trigger the rejection, but the cache never clears, so the limiting/blocking always remains in place.
I am trying to implement simple rate limiting an and old MVC application. If a POST endpoint is hit too many times, return a 500/429.
My approach:
This cache item never expires. The same thing happens if I am using the HttpContext cache approach:
...
etc.
Any idea?
I am testing this by running an external script that hits the end point multiple times. I can trigger the rejection, but the cache never clears, so the limiting/blocking always remains in place.
