action-scheduler icon indicating copy to clipboard operation
action-scheduler copied to clipboard

Is `as_has_wp_comment_logs ` always necessary?

Open hogash opened this issue 2 years ago • 1 comments

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!

hogash avatar Aug 24 '22 10:08 hogash

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.

peterfabian avatar Aug 29 '22 13:08 peterfabian