title: MVCDonutCaching - Issues with child action when parent is not donut cached
body: <p>I am using the awesom <a href="http://mvcdonutcaching.codeplex.com/" rel="nofollow">MVCDonutCaching</a> package from Nuget in order to cache entire pages while leaving certain portions uncached. The process is simple and everything works as it should:</p>
  
  <p>I am caching as follows:</p>
  
  <pre><code>[DonutOutputCache(CacheProfile = "FiveMins")]
  public ActionResult Index()
  {
    return View();
  }
  </code></pre>
  
  <p>For the section of my page I do not wish to cache I am doing the following:</p>
  
  <pre><code>  @Html.Action("HeaderLinks","Home", true)
  </code></pre>
  
  <p>This works as it should and indeed the bulk of the page is cached but my header links - context sensitive links displaying a log on button if the user is not logged in, their username if they are, etc. - is not cached. So far everything works.</p>
  
  <p>The problem that I am having is that the headerlinks belong to a master/layout page and are used across the board - regardless of whether an Action has a DonutOutputCache attribute set or not. When I create another action, let's call it 'about us', without a donut caching attribute I do not see my header links at all</p>
  
  <pre><code>public ActionResult AboutUs()
  {
    return View();
  }
  </code></pre>
  
  <p>Looking at the source code I see the following</p>
  
  <pre><code>&lt;!--Donut#
  &lt;ActionSettings xmlns="http://schemas.datacontract.org/2004/07/DevTrends.MvcDonutCaching" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt;
  &lt;ActionName&gt;HeaderLinks&lt;/ActionName&gt;
  &lt;ControllerName&gt;Home&lt;/ControllerName&gt;
  &lt;RouteValues xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"&gt;
  &lt;a:KeyValueOfstringanyType&gt;
  &lt;a:Key&gt;Area&lt;/a:Key&gt;
  &lt;a:Value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema"/&gt;
  &lt;/a:KeyValueOfstringanyType&gt;
  &lt;/RouteValues&gt;
  &lt;/ActionSettings&gt;
  #--&gt;
  </code></pre>
  
  <p>Obviously in the above example, which is generated by the donut caching library - the links section is replaced by some commented XML.</p>
  
  <p><strong>My question in a nutshell is:</strong> is it possible with this library to reuse the same child action regardless of whether the parent action is using donut caching or not?</p>
  
  <p>Any help would be appreciated.</p>