WC_Helper::refresh_helper_subscriptions │ public static │ WC 1.0

Flush helper authentication cache.

Method of the class: WC_Helper{}

Returns

void. Nothing (null).

Usage

$result = WC_Helper::refresh_helper_subscriptions();

WC_Helper::refresh_helper_subscriptions() code WC 11.2.2

public static function refresh_helper_subscriptions() {
	/**
	 * Fires when Helper subscriptions are refreshed.
	 *
	 * @since 8.3.0
	 */
	do_action( 'woocommerce_helper_subscriptions_refresh' );
	self::_flush_authentication_cache();
	self::_flush_subscriptions_cache();
	self::_flush_updates_cache();
	self::flush_product_usage_notice_rules_cache();

	// A manual refresh resets any rate-limit backoff so the subsequent
	// Helper API calls (e.g. update-check) are made fresh rather than skipped.
	WC_Helper_API_Backoff::clear_all();
}