OutputCache页面缓存
发布时间:2009/6/27 16:35:09 作者: 阅读:1078
广告:
缓存(秒数):
页面(page):
<%@ OutputCache Duration="60" VaryByParam="None" VaryByCustom="browser" %>
<%@ OutputCache Duration="60" VaryByParam="None" Location ="ServerAndClient" %>
用户控件(片段缓存):<%@ OutputCache Duration="60" VaryByParam="None" Shared="true" %>
Shared="false"
在默认情况下,对每个页面上的每个用户控件都单独进行缓存。如果一个用户控件不随应用程序中的页面改变,并且在所有页面都使用相同的名称,则可以应用 Shared="true" 参数
广告:
相关文章