wp_using_ext_object_cache( bool $using = null ): bool

Toggles $_wp_using_ext_object_cache on and off without directly touching global.


Parameters

$using bool Optional
Whether external object cache is being used.

Default: null


Top ↑

Return

bool The current 'using' setting.


Top ↑

Source

File: wp-includes/load.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
3.7.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.