wp_using_ext_object_cache

The timeline below displays how wordpress function wp_using_ext_object_cache has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.3

/**
 * Toggles `$_wp_using_ext_object_cache` on and off without directly
 * touching global.
 *
 * @since 3.7.0
 *
 * @global bool $_wp_using_ext_object_cache
 *
 * @param bool $using Whether external object cache is being used.
 * @return bool The current 'using' setting.
 */
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;
}

WordPress Version: 4.3

/**
 * Toggle `$_wp_using_ext_object_cache` on and off without directly
 * touching global.
 *
 * @since 3.7.0
 *
 * @global bool $_wp_using_ext_object_cache
 *
 * @param bool $using Whether external object cache is being used.
 * @return bool The current 'using' setting.
 */
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;
}

WordPress Version: 4.0

/**
 * Access/Modify private global variable `$_wp_using_ext_object_cache`.
 *
 * Toggle `$_wp_using_ext_object_cache` on and off without directly
 * touching global.
 *
 * @since 3.7.0
 *
 * @param bool $using Whether external object cache is being used.
 * @return bool The current 'using' setting.
 */
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;
}

WordPress Version: 3.7

/**
 * Access/Modify private global variable $_wp_using_ext_object_cache
 *
 * Toggle $_wp_using_ext_object_cache on and off without directly touching global
 *
 * @since 3.7.0
 *
 * @param bool $using Whether external object cache is being used
 * @return bool The current 'using' setting
 */
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;
}