Title: generating queries
Last modified: July 13, 2018

---

# generating queries

 *  [shawfactor](https://wordpress.org/support/users/shawfactor/)
 * (@shawfactor)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/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 7 years, 10 months ago by [shawfactor](https://wordpress.org/support/users/shawfactor/).
    -  This topic was modified 7 years, 10 months ago by [shawfactor](https://wordpress.org/support/users/shawfactor/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * (@kubitomakita)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/generating-queries/#post-10489822)
 * 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?
 *  Thread Starter [shawfactor](https://wordpress.org/support/users/shawfactor/)
 * (@shawfactor)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/generating-queries/#post-10491889)
 * 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.

 * ![](https://ps.w.org/advanced-cron-manager/assets/icon.svg?rev=3096140)
 * [Advanced Cron Manager - debug & control](https://wordpress.org/plugins/advanced-cron-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-cron-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-cron-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-cron-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-cron-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-cron-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [shawfactor](https://wordpress.org/support/users/shawfactor/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/generating-queries/#post-10491889)
 * Status: not resolved