WC_Cache_Helper::set_nocache_constants │ public static │ WC 1.0

Set constants to prevent caching by some plugins.

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

Хуков нет.

Возвращает

mixed.

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

$result = WC_Cache_Helper::set_nocache_constants( $return );
$return(разное)
Value to return. Previously hooked into a filter.
По умолчанию: true

Код WC_Cache_Helper::set_nocache_constants() WC 11.2.2

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;
}