wp_cache_add_global_groups()
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
- See: WP_Object_Cache::add_global_groups()
- Global. WP_Object_Cache. $wp_object_cache Object cache global instance.
Changelog
Since 2.6.0 | Introduced. |
Code of wp_cache_add_global_groups() 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 ); }