wp_cache_delete_multiple

函数
wp_cache_delete_multiple ( $keys, $group = '' )
参数
  • (array) $keys Array of keys under which the cache to deleted.
    Required:
  • (string) $group Optional. Where the cache contents are grouped. Default empty.
    Required:
    Default: (empty)
返回值
  • (bool[]) Array of return values, grouped by key. Each value is either true on success, or false if the contents were not deleted.
相关
  • WP_Object_Cache::delete_multiple()
定义位置
相关方法
wp_cache_get_multiplewp_cache_set_multiplewp_cache_add_multiplewp_cache_deletewp_delete_file
引入
6.0.0
弃用
-

wp_cache_delete_multiple: 这个函数从缓存中删除多个值,使用一个键的数组。

在一次调用中从缓存中删除多个值。

function wp_cache_delete_multiple( array $keys, $group = '' ) {
	global $wp_object_cache;

	return $wp_object_cache->delete_multiple( $keys, $group );
}

常见问题

FAQs
查看更多 >