wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_using_ext_object_cache › WordPress Function

Seit3.7.0
Veraltetn/v
wp_using_ext_object_cache ( $using = null )
Parameter:
  • (bool) $using Whether external object cache is being used.
    Erforderlich: Nein
    Standard: null
Gibt zurück:
  • (bool) The current 'using' setting.
Definiert in:
Codex:

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



Quellcode

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