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
See also
Parameters
- $groups
(string|string[])(Required)A group or an array of groups to add.
Source
File: wp-includes/cache.php
function wp_cache_add_global_groups( $groups ) { global $wp_object_cache; $wp_object_cache->add_global_groups( $groups ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |