Automattic\WooCommerce\Api\Infrastructure

Main::is_object_cache_enabledpublic staticWC 1.0

Whether the ObjectCache-backed query cache is enabled.

Defaults to true.

Method of the class: Main{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = Main::is_object_cache_enabled(): bool;

Main::is_object_cache_enabled() code WC 10.9.1

public static function is_object_cache_enabled(): bool {
	return wc_string_to_bool( get_option( self::OPTION_OBJECT_CACHE_ENABLED, 'yes' ) );
}