有没有人在一个有很多视图(数千)的大系统上测试过UsePhysicalViewsIfNewer ?
如果它每次都要检查磁盘,这不会使它变慢吗?关掉它会有明显的影响吗?
它被设计成一个开发时特性(特别是如果您使用的是RazorGenerator.MsBuild
)。这意味着您不必在每次更改视图时都重新构建应用程序。我还没有尝试过在实际应用中使用它,但在生产应用中关闭它应该是正确的事情。