Viewing 2 replies - 1 through 2 (of 2 total)
  • Databases are extremely good at looking for information inside them, lightning quick actually. If you’re having performance issues, try installing a cache plugin (like “WP Super Cache”) or a PHP caching system first.
    Or just hire a pro to audit your system and then start making changes.

    Thread Starter janosd

    (@janosd)

    i know they are extremely fast, also i have a dedicated mysql server and theres a special and highly effective caching system on the server(s).

    but! maybe its still good to hardcode some values? i mean why call 40 times get_option() if i can hardcode it?

    maybe now its not an issue but later at 30-50 thousand visitors a day, and i list about 50 posts on every page (!). that means a shitload of get_option() on every page ( hundreds).

    cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hardcoding values of get_option() / get_setting().’ is closed to new replies.