Currently, I store some settings in a database table. It contains 2 fields (setting_name, setting_value).
Now, all my models need access to these settings (for example, there is a setting which decides how many records a query should return at max), but I'm not sure how to implement it with good OO practices. Is there an accepted/good way of doing this (so all models have access to the config settings)?
Also, should I cache these settings (retrieving them is actually just 1 query per pageload) as some people seem to recommend this?
Thanks