
通过Docker部署运行MariaDB数据库
clean_comment_cache ( $ids )
clean_comment_cache: 这个函数清除了评论的缓存。评论是用户在一个文章或页面上产生的反馈: 当这个函数被调用时,它清除了所有评论数据的缓存。
从对象缓存中删除一个注释。
function clean_comment_cache( $ids ) { $comment_ids = (array) $ids; wp_cache_delete_multiple( $comment_ids, 'comment' ); foreach ( $comment_ids as $id ) { /** * Fires immediately after a comment has been removed from the object cache. * * @since 4.5.0 * * @param int $id Comment ID. */ do_action( 'clean_comment_cache', $id ); } wp_cache_set( 'last_changed', microtime(), 'comment' ); }