update_comment_cache
update_comment_cache ( $comments, $update_meta_cache = true )
Parameters:- (WP_Comment[]) comments Array of comment objects
- (bool) update_meta_cache Whether to update commentmeta cache. Default true.
Defined at:Change Log: - Introduced in WordPress: 2.3.0
- Deprecated in WordPress: —
Description
Updates the comment cache of given comments.Will add the comments in $comments to the cache. If comment ID already exists
in the comment cache then it will not be updated. The comment is added to the
cache using the comment group with the key using the ID of the comments.