How to remove OutputCache on ChildAction?
问题 I am trying to take advantage of the donut caching features in .Net MVC 3. For my Home page, in my home controller, I have: public ActionResult Index() { return View(); } [ChildActionOnly] [OutputCache(Duration=3600)] public ActionResult IndexMain() { return PartialView(ViewModelRepository.GetIndexViewModel()); } I my view, I have: <% Html.RenderAction("IndexMain");%> This all works fine. However, when the data changes, I run: var urlToRemove = Url.Action("IndexMain", "Home"); Response