clean_category_cache

函式
clean_category_cache ( $id )
引數
  • (int) $id Category ID
    Required:
定義位置
相關方法
clean_term_cacheclean_user_cacheclean_page_cacheupdate_category_cacheclean_network_cache
引入
2.1.0
棄用
-

clean_category_cache: 這個函式清除了分類的快取。分類是用來把文章組織到不同的組或部分: 當這個函式被呼叫時,它清除了所有類別資料的快取。

根據ID刪除分類快取資料。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function clean_category_cache( $id ) {
clean_term_cache( $id, 'category' );
}
function clean_category_cache( $id ) { clean_term_cache( $id, 'category' ); }
function clean_category_cache( $id ) {
	clean_term_cache( $id, 'category' );
}

常見問題

FAQs
檢視更多 >