[theme-reviewers] Best practice CSS options

Otto otto at ottodestruct.com
Sat May 7 17:24:16 UTC 2011


On Sat, May 7, 2011 at 11:32 AM, Tony Crockford <tonyc at boldfish.co.uk> wrote:
> Thus eliminating any database requests to find the css values, if you see what I mean.

If you use the theme mod system or the Settings API, then there are
no extra database requests. The settings in the options are
autoloaded at the start of the request and cached into memory. Pulling
from those with a get_option or get_theme_mod call doesn't hit the
database.

-Otto


More information about the theme-reviewers mailing list