L*******r 发帖数: 1011 | 1 System.Configuration.ConfigurationSettings.AppSettings 是在web application启动
的时候被初始化,
然后cache在memory中. MS必然实现了对web.config和Global.asax文件的file change
handler,一旦这两个
文件改变,web application会自动重起.
根据在这里:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q309018#4
If you modify either the Global.asax or the Web.config file (even with
Notepad), the Web application is restarted. This purges all data that is
stored in memory, such as application and cache data, as well as session data
if it is stored in |
|