W3cubDocs

/WordPress

wp_cache_add_global_groups( string|array $groups )

Adds a group or set of groups to the list of global groups.

Description

See also

Parameters

$groups

(string|array) (Required) A group or an array of groups to add.

Source

File: wp-includes/cache.php

function wp_cache_add_global_groups( $groups ) {
	global $wp_object_cache;

	$wp_object_cache->add_global_groups( $groups );
}

Changelog

Version Description
2.6.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_cache_add_global_groups