Merge pull request #1646 from woocommerce/PCP-1870-billing-agreements-endpoint-called-too-frequently-for-reference-transactions-check

Billing agreements endpoint called too frequently for Reference Transactions check (1870)
This commit is contained in:
Emili Castells 2023-09-08 15:42:06 +02:00 committed by GitHub
commit bd974a7922
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,7 +121,7 @@ class BillingAgreementsEndpoint {
*/ */
public function reference_transaction_enabled(): bool { public function reference_transaction_enabled(): bool {
try { try {
if ( get_transient( 'ppcp_reference_transaction_enabled' ) === true ) { if ( wc_string_to_bool( get_transient( 'ppcp_reference_transaction_enabled' ) ) === true ) {
return true; return true;
} }