How/where does ServiceStack cache the razor views?
When a request is first made to a ServiceStack service, it goes in and looks for all Razor views, compiles and caches them. Where is the assembly cached for the compiled views stored? When in release mode, will updating the views themselves rebuild the cached assembly?
I ask these questions because I'm seeing a very strange issue on my production box. I updated my whole site with changes to a bunch of razor views. But for some really strange reason, my old views are being rendered and I don't see any changes to the views.
What could be going on? How can the server render old razor views??
I know a lot of this is vague, but any help would be appreciated.
The compiled razor views are cached in an in-memory assembly. Touching the web.config to recycle the AppDomain is all that should be needed. I'm not sure why you're seeing old razor views, maybe it's some intermediary caching either on the browser or a reverse proxy cache server.
链接地址: http://www.djcxy.com/p/65510.html