wp_cache_delete() - WordPress 函数参考中文文档

返回介绍

wp_cache_delete()

发布于 2017-09-11 字数3833 浏览 976 评论 0

wp_cache_delete( int|string $key,  string $group = '' )

Removes the cache contents matching key and group.


描述


参数

$key

(int|string)
(Required)
What the contents in the cache are called.

$group

(string)
(Optional)
Where the cache contents are grouped.

Default value: ”


返回值

(bool) True on successful removal, false on failure.


源代码

File: wp-includes/cache.php

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

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

更新日志

Version 描述
2.0.0 Introduced.

相关函数

Uses

  • wp-includes/cache.php:
    WP_Object_Cache::delete()

Used By

  • wp-includes/ms-blogs.php:
    clean_site_details_cache()
  • wp-includes/comment.php:
    _clear_modified_cache_on_transition_comment_status()
  • wp-includes/ms-blogs.php:
    clean_network_cache()
  • wp-includes/option.php:
    delete_network_option()
  • wp-admin/includes/schema.php:
    populate_network()
  • wp-admin/includes/plugin.php:
    wp_clean_plugins_cache()
  • wp-admin/includes/update-core.php:
    update_core()
  • wp-includes/pluggable.php:
    wp_set_password()
  • wp-includes/general-template.php:
    delete_get_calendar_cache()
  • wp-includes/deprecated.php:
    delete_usermeta()
  • wp-includes/deprecated.php:
    update_usermeta()
  • wp-includes/class-wp-theme.php:
    WP_Theme::cache_delete()
  • wp-includes/taxonomy.php:
    clean_object_term_cache()
  • wp-includes/taxonomy.php:
    clean_term_cache()
  • wp-includes/taxonomy.php:
    wp_set_object_terms()
  • wp-includes/taxonomy.php:
    wp_remove_object_terms()
  • wp-includes/option.php:
    delete_site_transient()
  • wp-includes/option.php:
    delete_option()
  • wp-includes/option.php:
    delete_transient()
  • wp-includes/user.php:
    wp_update_user()
  • wp-includes/user.php:
    clean_user_cache()
  • wp-includes/user.php:
    wp_insert_user()
  • wp-includes/post.php:
    clean_post_cache()
  • wp-includes/post.php:
    clean_attachment_cache()
  • wp-includes/post.php:
    _transition_post_status()
  • wp-includes/revision.php:
    _wp_upgrade_revisions_of_post()
  • wp-includes/bookmark.php:
    clean_bookmark_cache()
  • wp-includes/ms-functions.php:
    add_user_to_blog()
  • wp-includes/ms-blogs.php:
    clean_blog_cache()
  • wp-includes/ms-blogs.php:
    get_blog_details()
  • wp-includes/comment.php:
    clean_comment_cache()
  • wp-includes/comment.php:
    wp_update_comment_count_now()
  • wp-includes/comment.php:
    wp_insert_comment()
  • wp-includes/meta.php:
    delete_metadata()
  • wp-includes/meta.php:
    update_metadata_by_mid()
  • wp-includes/meta.php:
    delete_metadata_by_mid()
  • wp-includes/meta.php:
    add_metadata()
  • wp-includes/meta.php:
    update_metadata()
  • Show 33 more used by
    Hide more used by


User Contributed Notes

上一篇:wp_cache_decr()

下一篇:wp_cache_flush()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!