开发者

.net 4 mvc2 output caching substitute name

开发者 https://www.devze.com 2023-01-20 21:25 出处:网络
I have output caching implemented at controller level [OutputCache(CacheProfile = \"MyProfile\")] public Result MyControllerAction()....

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

精彩评论

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