Hello, To configure aspx pages' OutputCache from one place, there is a great tool which is the CacheProfile attribute in <%@ OutputCache %> associated with a custom cache profile defined in the web.config :
<caching>
<outputCacheSettings>
<outputCacheProfiles>
<add name="myProfile" duration="300" />
</outputCacheProfiles>
</outputCacheSettings>
</caching>
And the line :
<%@ OutputCache CacheProfile="myProfile" VaryByParam="None" %>
does the job. But how to do the same thing for ascx user controls ? CacheProfile isn't in <%@ OutputCache %> :S Is there a workaround ? Thanks.