as_has_wp_comment_logs loading
-
I’m tuning my page load performance. I’ve noticed that on every page there is an individual call to get_option for as_has_wp_comment_logs – rather than this option being loaded as part of wp_load_alloptions.
The call originates from the plugins_loaded hook as follows:
get_option()
wp-includes/option.php:197
ActionScheduler_WPCommentCleaner::has_logs()
wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/ActionScheduler_WPCommentCleaner.php:61
ActionScheduler::init()
wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler.php:209
action_scheduler_initialize_3_dot_7_dot_4()
wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/action-scheduler.php:60
ActionScheduler_Versions::initialize_latest_version()
wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/ActionScheduler_Versions.php:59I think the problem is that, by default, there is no entry in the database options table for as_has_wp_comment_logs so it cannot be autoloaded. If there was an entry in the options table for as_has_wp_comment_logs with value “no” and autoload=yes, I think that would improve page load performance for most people using your plugin.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.