From ec029dd4c5cfa547f63a954c635b32c51eb56e4c Mon Sep 17 00:00:00 2001
From: Philipp Stracker
Date: Mon, 13 Jan 2025 14:09:04 +0100
Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Flush=20APM=20feature=20cache=20on?=
=?UTF-8?q?=20merchant=20disconnect?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/Service/AuthenticationManager.php | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/modules/ppcp-settings/src/Service/AuthenticationManager.php b/modules/ppcp-settings/src/Service/AuthenticationManager.php
index 96d7f3bc1..f722ab297 100644
--- a/modules/ppcp-settings/src/Service/AuthenticationManager.php
+++ b/modules/ppcp-settings/src/Service/AuthenticationManager.php
@@ -122,6 +122,11 @@ class AuthenticationManager {
* is no need for it here, it's good house-keeping practice to clean up.
*/
do_action( 'woocommerce_paypal_payments_flush_api_cache' );
+
+ /**
+ * Clear the APM eligibility flags from the default settings object.
+ */
+ do_action( 'woocommerce_paypal_payments_clear_apm_product_status' );
}
/**
@@ -420,6 +425,11 @@ class AuthenticationManager {
*/
do_action( 'woocommerce_paypal_payments_authenticated_merchant' );
+ /**
+ * Clear the APM eligibility flags from the default settings object.
+ */
+ do_action( 'woocommerce_paypal_payments_clear_apm_product_status' );
+
/**
* Subscribe the new merchant to relevant PayPal webhooks.
*/