wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_using_ext_object_cache › WordPress Function

Desde3.7.0
Obsoleton/a
› wp_using_ext_object_cache ( $using = null )
Parâmetros:
  • (bool) $using Whether external object cache is being used.
    Required: No
    Padrão: null
Retorna:
  • (bool) The current 'using' setting.
Definido em:
Codex:

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



Fonte

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