开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜