WordPress at a glance
function is not described

wp_using_ext_object_cache() WP 3.7.0

Toggle $_wp_using_ext_object_cache on and off without directly touching global.

  • Global. true/false. $_wp_using_ext_object_cache

No Hooks.


true/false. The current 'using' setting.


wp_using_ext_object_cache( $using );
Whether external object cache is being used.
Default: null

Code of wp using ext object cache: wp-includes/load.php VER 5.1.1

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;