WP_Object_Cache::add_global_groups( array $groups )
Sets the list of global cache groups.
Parameters
- $groups
-
(Required) List of groups that are global.
Source
File: wp-includes/cache.php
public function add_global_groups( $groups ) {
$groups = (array) $groups;
$groups = array_fill_keys( $groups, true );
$this->global_groups = array_merge( $this->global_groups, $groups );
}
Changelog
Version | Description |
---|---|
WP-3.0.0 | Introduced. |