Automattic\WooCommerce\Blocks\Utils

BlocksSharedState::prevent_cache │ private static │ WC 1.0

Prevent caching on certain pages.

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

Хуков нет.

Возвращает

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

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

$result = BlocksSharedState::prevent_cache(): void;

Код BlocksSharedState::prevent_cache() WC 11.2.2

private static function prevent_cache(): void {
	\WC_Cache_Helper::set_nocache_constants();
	nocache_headers();
}