WordPress at Your Fingertips
function is not described

WC_Cache_Helper::set_nocache_constants() public WC 1.0

Set constants to prevent caching by some plugins.

{} It's a method of the class: WC_Cache_Helper{}

No Hooks.

Return

Mixed.

Usage

$result = WC_Cache_Helper::set_nocache_constants( $return );
$return(mixed)
Value to return. Previously hooked into a filter.
Default: true

Code of WC_Cache_Helper::set_nocache_constants() WC 5.9.0

public static function set_nocache_constants( $return = true ) {
	wc_maybe_define_constant( 'DONOTCACHEPAGE', true );
	wc_maybe_define_constant( 'DONOTCACHEOBJECT', true );
	wc_maybe_define_constant( 'DONOTCACHEDB', true );
	return $return;
}