Automattic\WooCommerce\Internal\Admin\Suggestions
PaymentsExtensionSuggestions::clear_cache
Clear the cached extension suggestions data.
Call after changing store state that influences the suggestions list during a request. Also useful for testing purposes.
This only clears this class's memos, not the incentives provider's own caches.
Method of the class: PaymentsExtensionSuggestions{}
No Hooks.
Returns
void. Nothing (null).
Usage
$PaymentsExtensionSuggestions = new PaymentsExtensionSuggestions(); $PaymentsExtensionSuggestions->clear_cache(): void;
Changelog
| Since 11.2.0 | Introduced. |
PaymentsExtensionSuggestions::clear_cache() PaymentsExtensionSuggestions::clear cache code WC 11.2.1
public function clear_cache(): void {
$this->country_extensions_memo = array();
$this->extensions_base_details_memo = null;
}