Automattic\WooCommerce\Internal\OrderReviews

ItemEligibility::reset_cache │ public static │ WC 10.8.0

Reset the per-request cache. Test helper.

Метод класса: ItemEligibility{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = ItemEligibility::reset_cache(): void;

Список изменений

С версии 10.8.0 Введена.

Код ItemEligibility::reset_cache() WC 11.2.2

public static function reset_cache(): void {
	self::$review_cache = array();
	self::$preloaded    = array();
}