title: ASP.NET MVC: Clear an action's cache from another action
body: <p>Is it possible to clear one action's cache from another action?</p>
  
  <p>Let's say my Index action lists all my Widgets. There are lots of Widgets but new ones are not created very often. So I want to cache my Index action indefinitely but force it to render after a successful Create.</p>
  
  <pre><code>public class WidgetController : Controller
  {
      [OutputCache(Duration = int.MaxValue, VaryByParam = "none")]
      public ActionResult Index()
      {
          return View(Widget.AllWidgets);
      }
  
      public ActionResult Create()
      {
          return View();
      }
  
      [AcceptVerbs(HttpVerbs.Post)]
      public ActionResult Create(string name)
      {
          Widget widget = new Widget(name);
  
          // Can I clear Index's cache at this point?
          // ClearCache("Index");
  
          return View(widget);
      }
  }
  </code></pre>