web.config中的配置
<configuragion>
<system.web>
<caching>
<outputCacheSettings>
<outputCacheProfiles>
<add name="Cache90Seconds" duration="90" varyByParam="none"/>
</outputCacheProfiles>
</outputCacheSettins>
</caching>
<system.web>
</configuration>
页面开头处的设置
<%@ OutputCache CacheProfile="Cache90Seconds" %>
时间: 2025-01-11 18:05:44