wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_using_ext_object_cache › WordPress Function

Da3.7.0
Deprecaton/a
wp_using_ext_object_cache ( $using = null )
Parametri:
  • (bool) $using Whether external object cache is being used.
    Richiesto: No
    Default: null
Ritorna:
  • (bool) The current 'using' setting.
Definito a:
Codex:

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



Sorgenti

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