Does Razor ViewEngine cache the rendered HTMLs?
I have a 2-level menu item: I have a list of department and each department has a list of stores. I have a Menu, PartialView which iterates through the Model (departments) and builds the menu: @model IEnumerable<Department> <ul> @foreach (var department in Model) { <li> <a href="#">@Model.DepartmentName</a> <ul> @foreach (var store in department.Stores) { <li><a href="some-url">@store.StoreName</a></li> } </ul> </li> } </ul> And this is how I call the Menu PartialView in my _layout.cshtml : @Html.Partial("Shared/_Menu", MyApplicationCache.departments) As you can see I am passing the same model