Automattic\WooCommerce\Blocks\Utils
BlocksSharedState::prevent_cache
Prevent caching on certain pages.
Method of the class: BlocksSharedState{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = BlocksSharedState::prevent_cache(): void;
BlocksSharedState::prevent_cache() BlocksSharedState::prevent cache code WC 10.8.1
private static function prevent_cache(): void {
\WC_Cache_Helper::set_nocache_constants();
nocache_headers();
}