ViewLocationCache only works in release mode (setting <compilation debug="false"> in web.config ).
To enable ViewLocationCache in debug mode:
In a custom view engine that inherits from WebFormViewEngine , set ViewLocationCache in your ViewEngine constructor as follows:
public MyCustomViewEngine() { ViewLocationCache = new DefaultViewLocationCache(); }
You can also override the default cache timeout values if you wish.
Ben foster
source share