wp_cache_add_global_groups()WP 2.6.0

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

No Hooks.

Return

null. Nothing.

Usage

wp_cache_add_global_groups( $groups );
$groups(string|string[]) (required)
A group or an array of groups to add.

Notes

Changelog

Since 2.6.0 Introduced.

Code of wp_cache_add_global_groups() WP 5.9.3

function wp_cache_add_global_groups( $groups ) {
	global $wp_object_cache;

	$wp_object_cache->add_global_groups( $groups );
}