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


Top ↑

Return Return

(mixed)


Top ↑

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.