There have been a couple of questions that sort of dealt with this but not covering my exact question so here we go.
For site settings, if these are stored in a database do you:
- retrieve them from the db every time someone makes a request
- store them in a session variable on login
- ???????
For user specific settings do I do the same as site settings??
Any guidance/best practice would be greatly appreciated.
Cheers
I prefer an approach like Glomek proposes… Caching the settings in the WebCache will greatly enhance speed of access. Consider the following:
You’ll get the dynamic loading goodness, memory conservation of tossing items out of Cache after 2 hours of non-use, and the flush and reload you need when the settings are modified.