开发者

The duration of OutputCache ASP.NET MVC 2 does not work properly

开发者 https://www.devze.com 2023-03-04 15:28 出处:网络
I attach a OutputCache to an action method with following profile where the duration is of 12 hours.

I attach a OutputCache to an action method with following profile where the duration is of 12 hours.

<add name="DefaultProfile"      enabled ="true" noStore="false" duration="43200" varyByCustom="pq" varyByParam="none" location="Any"/>

The problem is server-side cache expires after just 2 or 3 minutes, not 12 hours as specified.

What setting I was missing开发者_开发知识库 out so that the cache mechanisms fail to conform to the specified duration.

0

精彩评论

暂无评论...
验证码 换一张
取 消