wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_using_ext_object_cache › WordPress Function

Since3.7.0
Deprecatedn/a
wp_using_ext_object_cache ( $using = null )
Parameters:
  • (bool) $using Whether external object cache is being used.
    Required: No
    Default: null
Returns:
  • (bool) The current 'using' setting.
Defined at:
Codex:

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



Source

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