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.
Метод класса: PaymentsExtensionSuggestions{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$PaymentsExtensionSuggestions = new PaymentsExtensionSuggestions(); $PaymentsExtensionSuggestions->clear_cache(): void;
Список изменений
| С версии 11.2.0 | Введена. |
Код PaymentsExtensionSuggestions::clear_cache() PaymentsExtensionSuggestions::clear cache WC 11.3.0
public function clear_cache(): void {
$this->country_extensions_memo = array();
$this->extensions_base_details_memo = null;
}