开发者

Output caching & substitution in MVC 3

Is the approach 开发者_如何学Gofor implementing substitution caching in MVC 3 contained in this page still valid? It was written in 2008 and MVC has changed dramatically since then so I'm not sure if there's a more current implementation of this.

Obviously the concept of a view code-behind isn't used anymore, but I'm referring more to the specifics of implementing the caching substitution itself.


The principle for substitution caching will be still same in MVC3, but MVC3 RC is adding support for the partial caching (exactly opposite way than substitution, but it can solve your issue)


You can find more information about new output caching features in MVC 3 here: http://aspalliance.com/2017_Announcing_the_ASPNET_MVC_3_Release_Candidate_.5


Output cache substitution was possible in MVC 1 but it has been removed since then. However, you can use it via Moth.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜