简体   繁体   中英

Application_Start in a web garden environment

Running under IIS 7.5, I have a web garden. When IIS is restarted, does it only call Application_Start one time or is it one time for each web garden instance? I would like definitive proof.

Also, as I understand it, each web garden instance is an exact clone. That means that if I add something to HttpContext.Cache in one instance it may not be available to HttpContext.Cache in another instance, is that correct?

Each web garden instance is, to my knowledge, it's own process completely. That means the cache is not shared, Application_Start is not shared, etc. Pretend like it's running on a completely different server, and you should get a good understanding of exactly what will/won't happen.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM