Пример #1
0
 function configure_groups()
 {
     // Configure the memcached client
     if (!$this->remote) {
         if (function_exists('wp_cache_add_no_remote_groups')) {
             wp_cache_add_no_remote_groups(array($this->group));
         }
     }
     if (function_exists('wp_cache_add_global_groups')) {
         wp_cache_add_global_groups(array($this->group));
     }
 }
 /**
  * Configure the memcached client
  *
  * @since 2.0.0
  */
 protected function configure_groups()
 {
     // Local memcached instance only
     if (false === $this->remote) {
         if (function_exists('wp_cache_add_no_remote_groups')) {
             wp_cache_add_no_remote_groups(array($this->group));
         }
     }
     // Add global cache group
     if (function_exists('wp_cache_add_global_groups')) {
         wp_cache_add_global_groups(array($this->group));
     }
 }
 /**
  * Configure the cache client
  *
  * @since 2.0.0
  */
 protected function configure_groups()
 {
     // Local cache instance only
     if (false === $this->remote && function_exists('wp_cache_add_no_remote_groups')) {
         wp_cache_add_no_remote_groups(array($this->group));
     }
 }