I'm using ASP.NET MVC 3.0. I'm using the OutputCache attribute to cache a partial view result, which is rendered on my master page using Html.RenderAction. The caching part works fine, but I cannot invalidate the cache by calling HttpResponse.RemoveOutputCacheItem. (The partial view remains cached and the action doesn't get called anymore.) I've been fighting this for a day, I've read all the forum posts on this, and I can't figure out what I'm doing wrong. There seems to be no documentation on the parameter that gets passed into RemoveOutputCacheItem, and the API gives no indication that something failed.
My partial view looks like this ...
public class HomeController : Controller
public ActionResult NavBar()
In my master page view, I'm using this to render the partial:
<% Html.RenderAction("NavBar", "Home"); %>
When the user performs an action that would cause the results of /Home/NavBar to change, I call this from within that action:
View Complete Post