simple_history_detective_mode_enabled option
-
I’m continuing to tune my site for what options get autoloaded/read for every page load.
Unlike other options “simple_history_detective_mode_enabled” doesn’t appear to have a default value set in wp_options. As a result it does not get autoloaded and get_option for it always causes a call to the database.
I can workaround this by going to settings, turning it on, saving, turning it off, saving. That causes the option to be created. And I can see from Query Monitor that I no longer get the extra database calls after this.
I wonder whether the code should be creating the default option somewhere else, as appears to be the case for all other options.
- You must be logged in to reply to this topic.