wp_cache_add_non_persistent_groups

函式
wp_cache_add_non_persistent_groups ( $groups )
引數
  • (string|string[]) $groups A group or an array of groups to add.
    Required:
定義位置
相關方法
wp_cache_add_global_groupswp_cache_flush_groupwp_admin_bar_add_secondary_groupswp_cache_set_multiplewp_cache_delete_multiple
引入
2.6.0
棄用
-

wp_cache_add_non_persistent_groups: 這個函式將一個或多個組新增到非永續性組的列表中。這些組不會被儲存到磁碟或資料庫中,而只儲存在記憶體中。

將一個組或一組組新增到非持久組列表中。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function wp_cache_add_non_persistent_groups( $groups ) {
// Default cache doesn't persist so nothing to do here.
}
function wp_cache_add_non_persistent_groups( $groups ) { // Default cache doesn't persist so nothing to do here. }
function wp_cache_add_non_persistent_groups( $groups ) {
	// Default cache doesn't persist so nothing to do here.
}

常見問題

FAQs
檢視更多 >