wp_cache_add_global_groups() WordPress Function

The wp_cache_add_global_groups() function allows you to add global groups to the WordPress cache. This function is useful for adding groups that are not specific to a particular post or page.

wp_cache_add_global_groups( string|string[] $groups ) #

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


Description

Top ↑

See also


Top ↑

Parameters

$groups

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


Top ↑

Source

File: wp-includes/cache.php

function wp_cache_add_global_groups( $groups ) {
	global $wp_object_cache;

	$wp_object_cache->add_global_groups( $groups );
}


Top ↑

Changelog

Changelog
VersionDescription
2.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.