empty($_wp_suspend_cache_invalidation))return;$id=(int)$id;if(0===$id)return;wp_cache_delete($id,'posts');wp_cache_delete($id,'post_meta');clean_object_term_cache($id,'post');wp_cache_delete('wp_get_archives','general');do_action('clean_post_cache',$id);if($children=$wpdb...
wp_clean_update_cache: 这是一个清除WordPress更新缓存的函数。它可以用来确保在检查更新时显示最新的更新。 清除插件、主题和核心的现有更新缓存。 function wp_clean_update_cache() { if ( function_exists( 'wp_clean_plugins_cache' ) ) { wp_clean_plugins_cache(); } else { delete_site_transient( ...
clean_blog_cacheclean_network_cacheclean_post_cacheclean_user_cacheclean_comment_cache 引入 2.7.0弃用 -clean_bookmark_cache: 这个函数清除了书签的缓存。书签是保存在WordPress中的链接,可以作为参考,或者显示在链接列表中,例如,在侧边栏小工具中: 当这个函数被调用时,它清除了所有书签数据的缓存。 删除书签缓...
wp_clean_update_cache() Clear existing update caches for plugins, themes, and core. description 源代码 File: wp-includes/update.php function…
› WordPress Action Hooks Since4.5.0 Deprecatedn/a › do_action( 'clean_comment_cache', $id ) Parameters: (int) $id Comment ID. Required: Yes Defined at: wp-includes/comment.php, line 3359 Codex: Plugin_API/Action_Reference/clean_comment_cache ...
(int)$idThe attachment ID in the cache to clean. Required:Yes (bool)$clean_termsOptional. Whether to clean terms cache. Default false. Required:No Default:false Defined at: wp-includes/post.php, line 7801 Codex: developer.wordpress.org / clean_attachment_cache ...
clean_term_cache›WordPress Function Since2.3.0 Deprecatedn/a ›clean_term_cache ($ids,$taxonomy = '',$clean_taxonomy = true) Parameters: (3) (int|int[])$idsSingle or array of term IDs. Required:Yes (string)$taxonomyOptional. Taxonomy slug. Can be empty, in which case the taxonomi...
wp_clean_plugins_cache›WordPress Function Since3.7.0 Deprecatedn/a ›wp_clean_plugins_cache ($clear_update_cache = true) Parameters: (bool)$clear_update_cacheWhether to clear the plugin updates cache. Default true. Required:No Default:true ...
developer.wordpress.org / clean_taxonomy_cache Cleans the caches for a taxonomy. Related Functions:clean_term_cache,clean_bookmark_cache,clean_category_cache,clean_blog_cache,clean_comment_cache Source functionclean_taxonomy_cache($taxonomy){wp_cache_delete('all_ids',$taxonomy); wp_cache_delete(...
WordPress Performance How to Uninstall a WordPress Plugin (the Proper Way) A majority of plugins leave behind tables and rows in your database after you delete them. Check out how to uninstall a WordPress plugin the proper… Reading time ...