Added cache for application settings (Setting model).
Once the values are cached, only one database query is done at each user request (to check if the cache is still valid).
Authored by: jplang 2007-08-31
Parent: [r684]
Child: [r686]