wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_using_ext_object_cache › WordPress Function

Depuis3.7.0
Dépréciéen/a
wp_using_ext_object_cache ( $using = null )
Paramètres:
  • (bool) $using Whether external object cache is being used.
    Requis: Non
    Défaut: null
Retourne:
  • (bool) The current 'using' setting.
Défini(e) dans:
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;
}