WordPress at Your Fingertips

wp_using_ext_object_cache() WP 1.0

Toggle $_wp_using_ext_object_cache on and off without directly touching global.

1 time — -0.00003 sec (speed of light) | 50000 times — 0.01 sec (speed of light)

No Hooks.

Return

true|false. The current 'using' setting.

Usage

wp_using_ext_object_cache( $using );
$using(true|false)
Whether external object cache is being used.

Notes

  • Global. true|false. $_wp_using_ext_object_cache

Changelog

Since 3.7.0 Introduced.

Code of wp_using_ext_object_cache() WP 5.7.2

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

From tag: cache (caching)

No comments
    Log In