wp_cache_add_global_groups() - WordPress 函数参考中文文档

返回介绍

wp_cache_add_global_groups()

发布于 2017-09-11 字数1338 浏览 872 评论 0

wp_cache_add_global_groups( string|array $groups )

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


描述


参数

$groups

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


源代码

File: wp-includes/cache.php

function wp_cache_add_global_groups( $groups ) {
	global $wp_object_cache;

	$wp_object_cache->add_global_groups( $groups );
}

更新日志

Version 描述
2.6.0 Introduced.

相关函数

Uses

  • wp-includes/cache.php:
    WP_Object_Cache::add_global_groups()

Used By

  • wp-includes/class-wp-theme.php:
    WP_Theme::__construct()
  • wp-includes/load.php:
    wp_start_object_cache()
  • wp-includes/ms-blogs.php:
    switch_to_blog()
  • wp-includes/ms-blogs.php:
    restore_current_blog()

User Contributed Notes

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!