title: Partial Views Caching in ASP.NET MVC 3
body: <p>How can I cache the output of the PartialViews in ASp.NET MVC 3? I know I can decorate the action with [OutputCache] attribute but what I just want to include the @OutputCache right into the PartialView as shown below: </p>
  
  <pre><code>@OutputCacheAttribute
  
  @model MvcApplication1.Models.someViewmodel
  
  @{
      ViewBag.Title = "Index";
  }
  
  &lt;h2&gt;Index&lt;/h2&gt;
  
  
  
  @Html.Partial("_MyPartialView")
  </code></pre>