Slow Queries for storing opening_hours_db_version
Opened this issue · 0 comments
janizde commented
Copied from https://wordpress.org/support/topic/slow-queries-18/
I have been running some tests on my website and loaded the Query Monitor plugin to evaluate where the slowness was happening.
The number one issue on just about every page, including the admin panel, is surprisingly Opening Hours.
Query
UPDATE "wp_options"
SET "option_value" = "2"
WHERE "option_name" = "opening_hours_db_version"
Caller
update_option()
wp-includes/option.php:440
OpeningHours\OpeningHours->maybeUpdate()
wp-content/plugins/wp-opening-hours/classes/OpeningHours/OpeningHours.php:82
do_action("wp_loaded")
wp-includes/plugin.php:478
Component
Plugin: wp-opening-hours
Rows
0
Time
0.0562
I guess my question is, I am only using this plugin on one page. Is there anyway to disable it from running unless I am on that page, or in the admin area of the plugin?