提高Asp.net性能之一是适当的运用缓存.
在.aspx 页面指定缓存时间和参数.
如:

Asp.net 缓存 OutputCache<%@ Page Language="C#"  CodeFile="hooyesTest.aspx.cs" Inherits="hooyesTest" %>
Asp.net 缓存 OutputCache
<%@ OutputCache Duration="3600" Location="any"   VaryByParam="PcacheTime" %>
 
OutputCache 指令确定使用缓存.
Duration 必需属性 ,提定缓存时间.
VaryByParam 必需属性,可以为 VaryByParam="none" 或 VaryByParam="*"
  或指定参数,如 VaryByParam="PcacheTime",VaryByParam="PcacheTime;page"

相关文章:

  • 2021-12-27
  • 2021-05-28
  • 2022-02-14
  • 2021-07-17
  • 2022-02-03
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-28
  • 2022-12-23
  • 2021-07-02
  • 2021-05-26
  • 2021-06-21
  • 2022-12-23
  • 2021-09-28
相关资源
相似解决方案