ConfigurationManager.AppSettings Caching

前端 未结 6 2232
北恋
北恋 2020-12-29 20:13

We know that IIS caches ConfigurationManager.AppSettings so it reads the disk only once until the web.config is changed. This is done for performance purposes.

Someo

6条回答
  •  Happy的楠姐
    2020-12-29 20:43

    As John says only spend more time on this if you are actually seeing a performance hit.

    Also I'm pretty sure that these applications hold the configuration in memory, and to see any changes within a config the application would have to be restarted.

    For some further reading about remaining mysteries.

提交回复
热议问题