You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
We had a bit of caching using the IVirtualPathPageFactory but it was short-lived. In our case, we would cache a null result along with a file watch on that specific path.
@davidfowl - this isn't based on user input, it's based on pages that the app is programmed to render. In a properly programmed app there will still be lots of misses that aren't errors due to display/editor templates. In the case of editor/display templates, the bounding factor is the number of types used in views.
This bug means we go to disk for every @Html.EditorFor
* Allow precompiled views to be served when source file does not exist in
file system.
* Cache results for views that do not exist on disk.
Fixes#2462 and fixes#2796.
Partially addresses #2551
Nothing is cached when looking for a view that doesn't exist, causing us to repeat the file lookup each time it's requested.
This is a big problem when using
EditorFor
because the default templates are frequently requested and rarely customized. Here's the offending code:https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNet.Mvc.Razor/Compilation/CompilerCache.cs#L108
Suggestion from @pranavkm is to fold this case into
OnCacheMiss
and make that method capable of storing data about a file that doesn't exist on disk.The text was updated successfully, but these errors were encountered: