RenderAction and Partials with output caching

I am currently setting up my mvc4 web application and have a question regarding using Partial views and Render Action.

If I apply output caching to a controller action method, will that save a request to the action method when using RenderAction?

And if I have a view that has multiple partials, is it possible to apply output caching to some but not all partials in the main view? or do I need a controller action for each view and apply output caching to such? I want to set this up to achieve best performance.


You need to check this blog here [http://www.devtrends.co.uk/blog/donut-output-caching-in-asp.net-mvc-3][1]

Hope it would help you!

链接地址: http://www.djcxy.com/p/50946.html

上一篇: 与表单提交共享视图的反馈

下一篇: 使用输出缓存渲染活动和部分