Automattic\WooCommerce\Blocks\BlockTypes
ProductButton::prevent_cache()
Prevent caching on certain pages
Method of the class: ProductButton{}
No Hooks.
Returns
null
. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->prevent_cache();
ProductButton::prevent_cache() ProductButton::prevent cache code WC 9.8.5
private function prevent_cache() { \WC_Cache_Helper::set_nocache_constants(); nocache_headers(); }