在ASP.NET MVC 3可甜甜圈缓存 [英] Is Donut caching available in ASP.NET MVC 3
问题描述
ASP.NET MVC 3(最终)今日正式发布。当此版本还处于起步阶段记得阅读codePLEX甜甜圈缓存正在考虑。有谁知道,如果这使它成为V3?我似乎无法找到任何信息,所以我只能(可惜),认为它没有发生。
ASP.NET MVC 3 (final) was released today. When this version was in its infancy I remember reading on codeplex that donut caching was being considered. Does anyone know if this made it into V3? I cannot seem to find any information so I can only (sadly) assume that it didn't happen.
推荐答案
<击>是的,是的。斯科特谷<一个href=\"http://weblogs.asp.net/scottgu/archive/2010/12/10/announcing-asp-net-mvc-3-release-candidate-2.aspx\">blogged它的:
在除了支持全页
输出缓存,ASP.NET MVC 3还
支持部分页面缓存 - 这
允许你缓存输出的区域
在多个请求和重新使用它
或控制器。在[的OutputCache]
对于部分页面缓存的行为
与RC2使得子内容更新
缓存条目是多种多样的基础上
相对于URL输入参数
顶层请求的结构 -
这使得缓存场景都
容易和比更强大的
行为在previous RC。
罢工>
更新:
开箱只甜甜圈洞缓存在ASP.NET MVC 3支持这允许您通过使用缓存页面的一小部分 [的OutputCache]
属性对孩子的行动。不支持甜甜圈缓存其允许排除已被缓存的网页的部分。 Response.WriteSubstitution
因为ASP.NET MVC不起作用2.这是一个的好文章这也解释了在ASP.NET MVC 3。
Out of the box only donut hole caching is supported in ASP.NET MVC 3. This allows you to cache a small portion of the page by using the [OutputCache]
attribute on a child action. Donut caching which allows for excluding portions of a page that has been cached is not supported. Response.WriteSubstitution
doesn't work since ASP.NET MVC 2. Here is a good article which explains the different caching options available in ASP.NET MVC 3.
更新2:
下面是它说明了如何伟大的文章甜甜圈缓存可以在ASP.NET MVC 3中启用。
Here's a great article which illustrates how donut caching could be enabled in ASP.NET MVC 3.
这篇关于在ASP.NET MVC 3可甜甜圈缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!