wp_cache_add_global_groups

Adds a group or set of groups to the list of global groups.

Description

wp_cache_add_global_groups( (string|array) $groups ); 

Parameters (1)

0. $groups (string|array)
A group or an array of groups to add.

Usage

  1. if ( !function_exists( 'wp_cache_add_global_groups' ) ) { 
  2. require_once ABSPATH . WPINC . '/cache.php'; 
  3.  
  4. // A group or an array of groups to add. 
  5. $groups = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wp_cache_add_global_groups($groups); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/cache.php  
  1. function wp_cache_add_global_groups( $groups ) { 
  2. global $wp_object_cache; 
  3.  
  4. $wp_object_cache->add_global_groups( $groups );