wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_cache_flush_group › WordPress Function

Since6.1.0
已弃用n/a
wp_cache_flush_group ( $group )
参数:
  • (string) $group Name of group to remove from cache.
    Required: Yes
查看:
  • WP_Object_Cache::flush_group()
返回:
  • (bool) True if group was flushed, false otherwise.
定义在:
文档:

Removes all cache items in a group, if the object cache implementation supports it.

Before calling this function, always check for group flushing support using the wp_cache_supports( 'flush_group' ) function.


源码

function wp_cache_flush_group( $group ) {
	global $wp_object_cache;

	return $wp_object_cache->flush_group( $group );
}