Automattic\WooCommerce\Api\Infrastructure
Main::is_object_cache_enabled
Whether the ObjectCache-backed query cache is enabled.
Defaults to true.
Метод класса: Main{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = Main::is_object_cache_enabled(): bool;
Код Main::is_object_cache_enabled() Main::is object cache enabled WC 11.0.1
public static function is_object_cache_enabled(): bool {
return wc_string_to_bool( get_option( self::OPTION_OBJECT_CACHE_ENABLED, 'yes' ) );
}