【发布时间】:2014-09-04 23:57:20
【问题描述】:
我们在 Web.Config 中使用输出缓存配置文件,如下所示:
<caching>
<outputCacheSettings>
<outputCacheProfiles>
<clear />
<add name="CacheHourly" location="Server" duration="3600" varyByParam="*" varyByCustom="IsMobile" />
<add name="CacheDaily" location="Server" duration="86400" varyByParam="*" varyByCustom="IsMobile" />
</outputCacheProfiles>
</outputCacheSettings>
</caching>
在perfmon 中,我们看到输出缓存计数器中有 100% 未命中(无命中)。我们基本上看到了输出缓存计数器的全面 0(未命中除外)。
请看下面的截图。
关键是我相当确定它已启用。如果我将enabled="false" 添加到每个输出缓存配置文件,然后点击目标页面,它将始终在 300 毫秒内返回。如果我保持启用它们,它将始终在 90 毫秒内返回,这不是超快,但始终比 300 毫秒快。
编辑:我认为 Output Cache * 计数器是正确的计数器是错误的吗? URI 缓存计数器的命中率似乎更高,但我认为这仅适用于 IIS URI 元数据。
【问题讨论】:
标签: iis iis-8 outputcache perfmon