Output cache settings

To render an image with WPF while using runtime parameters can consume more resources than you expected. So the default actions has an OutputCache attribute on them. Because of this you must include in your web.config three output cache profile settings - one for each.

<caching>
  <outputCacheSettings>
    <outputCacheProfiles>
      <add name="Tacepao" duration="10" varyByParam="*" enabled="true"/>
      <add name="SqlImage" duration="10" varyByParam="*" enabled="true"/>
      <add name="XamlToPng" duration="10" varyByParam="*" enabled="true"/>
    </outputCacheProfiles>
  </outputCacheSettings>
</caching>

Last edited Feb 23, 2011 at 1:15 PM by Tocsi, version 2

Comments

No comments yet.