views:

35

answers:

1

Hi, i am checking a setting (from the settings.settings) in the master page to see whether or not to add a stats tracking code to the page or not. In test environment, this is false, production this is true.

I was wondering if this reads the web.config file every time, or if asp.net will "cache" this setting on application startup or something so it is more readily available.

+2  A: 

No. It's cached and actually comparible to a static property.

Nissan Fan
Got a reference for that? (that it's cached)
citronas
It's cached. Remember the first rule of optimization, BigJoe.
Bryan