Is web.config or app.config cached in memory

后端 未结 3 1168
青春惊慌失措
青春惊慌失措 2021-01-01 23:58

if it is cached, what happens if I use multiple web.config in multi-level folders

3条回答
  •  半阙折子戏
    2021-01-02 00:45

    Web.config (excluding external config files) is read when the application loads. Some config settings have a cascading behavior. For example, the system.web/authorization section can be overridden by configs at deeper levels.

    ASP.NET monitors the web.config for changes. When it changes, the web application is forced to restart. Moral is that web.config settings are cached for the life of the application.

提交回复
热议问题