wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_using_ext_object_cache › WordPress Function

Since3.7.0
已弃用n/a
wp_using_ext_object_cache ( $using = null )
参数:
  • (bool) $using Whether external object cache is being used.
    Required: No
    默认: null
返回:
  • (bool) The current 'using' setting.
定义在:
文档:

Toggles `$_wp_using_ext_object_cache` on and off without directly touching global.



源码

function wp_using_ext_object_cache( $using = null ) {
	global $_wp_using_ext_object_cache;

	$current_using = $_wp_using_ext_object_cache;

	if ( null !== $using ) {
		$_wp_using_ext_object_cache = $using;
	}

	return $current_using;
}