Support » Plugin: Advanced Cron Manager - debug & control » generating queries

  • Kuba,

    kudos on a fantastic plugin, if I could give it a second 5 star review I would

    I have a question, query monitor is logging the following tw queries:

    SELECT option_value
    FROM wp_options
    WHERE option_name = ‘acm_server_settings’
    LIMIT 1

    SELECT option_value
    FROM wp_options
    WHERE option_name = ‘acm_schedules’
    LIMIT 1

    Looks like calls to get_option non existent options, how do I fix this? Are there any settings I need to set to populate the options table, I can find any settings and the plugin itself is working fine (it is a great plugin).

    Pete

    • This topic was modified 1 year, 4 months ago by shawfactor.
    • This topic was modified 1 year, 4 months ago by shawfactor.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kuba Mikita

    (@kubitomakita)

    Hi Pete, thank you very much!

    These options:

    acm_server_settings – stores the info about server cron, when you disable WP Cron with a checkbox.

    acm_schedules – stores the data about custom schedules, like once every 20 minutes

    Do you think there is a bug?

    Kuba,

    No bug but a way to improve the speed of your plugin (in a small way).

    Basically if you don’t need that functionality (and consequently have not populated the option), the code currently runs get_option and as the option does not exist WordPress performs a query for those options (thinking the option does exist but is not auto loaded).

    If you could make a small chsnge to the code such that the option always exist (but where it was not needed you could use 0), then there would be a (small) speed improvement.

    No biggie though.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘generating queries’ is closed to new replies.