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



wp_cache_delete ›

Since2.0.0
已弃用n/a
wp_cache_delete ( $key, $group = '' )
参数: (2)
  • (int|string) $key What the contents in the cache are called.
    Required: Yes
  • (string) $group Optional. Where the cache contents are grouped. Default empty.
    Required: No
    默认: (empty)
查看:
  • WP_Object_Cache::delete()
返回:
  • (bool) True on successful removal, false on failure.
定义在:
文档:

Removes the cache contents matching key and group.



源码

function wp_cache_delete( $key, $group = '' ) {
	global $wp_object_cache;

	return $wp_object_cache->delete( $key, $group );
}