On this page
wp_cache_add_global_groups( string|string[] $groups )
Adds a group or set of groups to the list of global groups.
Description
See also
Parameters
$groupsstring|string[] Required-
A group or an array of groups to add.
Source
File: wp-includes/cache.php. View all references
function wp_cache_add_global_groups( $groups ) {
global $wp_object_cache;
$wp_object_cache->add_global_groups( $groups );
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Object_Cache::add_global_groups() wp-includes/class-wp-object-cache.php | Sets the list of global cache groups. |
Used By
| Used By | Description |
|---|---|
| WP_Theme::__construct() wp-includes/class-wp-theme.php | Constructor for WP_Theme. |
| wp_start_object_cache() wp-includes/load.php | Start the WordPress object cache. |
| switch_to_blog() wp-includes/ms-blogs.php | Switch the current blog. |
| restore_current_blog() wp-includes/ms-blogs.php | Restore the current blog, after calling switch_to_blog() . |
Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_cache_add_global_groups