I have a lot of requests that read my Web Config file
variable = WebConfigurationManager.AppSettings["BLAH"]
Do WebConfigurationManager.AppSettings
read from disk each time, or is it cached in memory?
If it's read from disk each time then I guess I will need to move the variable to a static variable so as to improve my app performance.
Configuration settings are cached in memory and web.config is not parsed every time you call this function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With