clear_global_post_cache

函式
clear_global_post_cache ( $post_id )
引數
  • (int) $post_id Post ID.
    Required:
相關
  • clean_post_cache()
定義位置
相關方法
clean_post_cacheclean_blog_cacheclean_page_cacheclean_user_cacheclean_term_cache
引入
-
棄用
3.0.0

clear_global_post_cache: 這個函式清除了全域性文章快取。全域性文章快取是一個儲存當前文章資料的快取: 當這個函式被呼叫時,它清除了當前文章資料的快取。

清除全域性文章快取的函式已經棄用。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function clear_global_post_cache( $post_id ) {
_deprecated_function( __FUNCTION__, '3.0.0', 'clean_post_cache()' );
}
function clear_global_post_cache( $post_id ) { _deprecated_function( __FUNCTION__, '3.0.0', 'clean_post_cache()' ); }
function clear_global_post_cache( $post_id ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'clean_post_cache()' );
}

常見問題

FAQs
檢視更多 >