WC_Install::enable_product_instance_caching_for_newly_installed │ public static │ WC 11.0.0

Enable product object caching by default for new shops.

Only newly installed stores get the feature enabled here; existing installs keep the opt-in default so their behavior is unchanged on upgrade.

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

Хуков нет.

Возвращает

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

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

$result = WC_Install::enable_product_instance_caching_for_newly_installed(): void;

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

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

Код WC_Install::enable_product_instance_caching_for_newly_installed() WC 11.2.2

public static function enable_product_instance_caching_for_newly_installed(): void {
	$feature_controller = wc_get_container()->get( FeaturesController::class );
	$feature_controller->change_feature_enable( ProductCacheController::FEATURE_NAME, true );
}