wp_cache_delete

函式
wp_cache_delete ( $key, $group = '' )
引數
  • (int|string) $key What the contents in the cache are called.
    Required:
  • (string) $group Optional. Where the cache contents are grouped. Default empty.
    Required:
    Default: (empty)
返回值
  • (bool) True on successful removal, false on failure.
相關
  • WP_Object_Cache::delete()
定義位置
相關方法
wp_cache_resetwp_cache_getwp_cache_setwp_cache_decrwp_cache_replace
引入
2.0.0
棄用
-

wp_cache_delete: 此函式從快取中刪除與指定鍵相關的值。

刪除匹配key和group的快取內容。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function wp_cache_delete( $key, $group = '' ) {
global $wp_object_cache;
return $wp_object_cache->delete( $key, $group );
}
function wp_cache_delete( $key, $group = '' ) { global $wp_object_cache; return $wp_object_cache->delete( $key, $group ); }
function wp_cache_delete( $key, $group = '' ) {
	global $wp_object_cache;

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

常見問題

FAQs
檢視更多 >