Forums

Hardcoding values of get_option() / get_setting(). (3 posts)

  1. janosd
    Member
    Posted 3 years ago #

    Should i do? Is it cost-effective performance-wise?

  2. riledhel
    Member
    Posted 3 years ago #

    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.

  3. janosd
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.