开发者

.net 4 mvc2 output caching substitute name

I have output caching implemented at controller level

[OutputCache(CacheProfile = "MyProfile")]
public Result MyControllerAction()....

I have some text in matching view (Views/MyController/MyControll开发者_JS百科erAction.aspx) that needs to change with each page load, even though the returned page is cached. I think this is also called donut caching.

How can I accomplish this? And where do I need to put the callback function if indeed this is possible. Can I specify the callback on Controller level or Page level.

Thanks

--MB


ASP.Net MVC does not yet support donut caching; it's planned for version 3.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜