On this page
WP_Object_Cache::add_global_groups( string|string[] $groups )
Sets the list of global cache groups.
Parameters
$groupsstring|string[] Required-
List of groups that are global.
Source
File: wp-includes/class-wp-object-cache.php. View all references
public function add_global_groups( $groups ) {
$groups = (array) $groups;
$groups = array_fill_keys( $groups, true );
$this->global_groups = array_merge( $this->global_groups, $groups );
}
Related
Used By
| Used By | Description |
|---|---|
| wp_cache_add_global_groups() wp-includes/cache.php | Adds a group or set of groups to the list of global groups. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_object_cache/add_global_groups