It's cache, not cash. LOL
Anyway, this is not something that should be cached. This should go into the web.config. This way
if the number ever needs to be changed, there is no code to release, you simply edit the web.config.
As an afterthought, if the phone number is system wide and not user specific you could use the application cache with an absolute expiration so it gets refreshed periodically in case the dB value changes. This would mean on dB hit rather than one per user session with the cached value being available to all application users...
..just a thought.
Rhys
"Technological progress is like an axe in the hands of a pathological criminal"
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe" Albert Einstein
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.