WC_Cache_Helper::set_nocache_constants( mixed $return = true )
Set constants to prevent caching by some plugins.
Description Description
Parameters Parameters
- $return
-
(Optional) Value to return. Previously hooked into a filter.
Default value: true
Return Return
(mixed)
Source Source
File: includes/class-wc-cache-helper.php
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; }