Avoid running query in WC_Payments::should_load_stripe_billing_integration()
on every page load
#9717
Labels
category: performance
The issue/PR is related to performance.
focus: architecture
Product architecture and engineering best practices
The fallback query used in
WC_Payments::should_load_stripe_billing_integration()
currently runs on every page load. The decision from the query results should probably be cached, especially since it isn't a simple query and isn't extremely fast.woocommerce-payments/includes/class-wc-payments.php
Lines 2067 to 2080 in faf5ef7
Resulting Query:
Query explain:
The text was updated successfully, but these errors were encountered: