Automattic\WooCommerce\Blocks\Utils
BlocksSharedState::prevent_cache
Prevent caching on certain pages.
Метод класса: BlocksSharedState{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$result = BlocksSharedState::prevent_cache(): void;
Код BlocksSharedState::prevent_cache() BlocksSharedState::prevent cache WC 11.2.2
private static function prevent_cache(): void {
\WC_Cache_Helper::set_nocache_constants();
nocache_headers();
}