wp_cache_add_non_persistent_groups

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

WordPress Version: 5.7

/**
 * Adds a group or set of groups to the list of non-persistent groups.
 *
 * @since 2.6.0
 *
 * @param string|string[] $groups A group or an array of groups to add.
 */
function wp_cache_add_non_persistent_groups($groups)
{
    // Default cache doesn't persist so nothing to do here.
}

WordPress Version: 4.4

/**
 * Adds a group or set of groups to the list of non-persistent groups.
 *
 * @since 2.6.0
 *
 * @param string|array $groups A group or an array of groups to add.
 */
function wp_cache_add_non_persistent_groups($groups)
{
    // Default cache doesn't persist so nothing to do here.
}

WordPress Version: 4.2

/**
 * Adds a group or set of groups to the list of non-persistent groups.
 *
 * @since 2.6.0
 *
 * @param string|array $groups A group or an array of groups to add
 */
function wp_cache_add_non_persistent_groups($groups)
{
    // Default cache doesn't persist so nothing to do here.
}

WordPress Version: 3.7

/**
 * Adds a group or set of groups to the list of non-persistent groups.
 *
 * @since 2.6.0
 *
 * @param string|array $groups A group or an array of groups to add
 */
function wp_cache_add_non_persistent_groups($groups)
{
    // Default cache doesn't persist so nothing to do here.
    return;
}