action-scheduler
action-scheduler copied to clipboard
Is `as_has_wp_comment_logs ` always necessary?
Hey guys,
With Query Monitor enabled and WooCommerce active I'm seeing get_option('as_has_wp_comment_logs')
running in all page loads. Is it necessary to run in the frontend, logged in or out?
Thanks!
Hi @hogash
Thanks for the question/suggestion. I agree it's not necessary to run this at all times, though the cost of accessing an option should be generally pretty low in WP. That said, probably the whole AS init could be skipped on the front end and run only in the context of WP Admin, in REST API and CLI context.