update_comment_cache ( $comments, $update_meta_cache = true )

  • (WP_Comment[]) comments Array of comment objects
  • (bool) update_meta_cache Whether to update commentmeta cache. Default true.
Defined at:
Change Log:
  • 4: .


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.

Related Functions

update_meta_cache, update_postmeta_cache, update_termmeta_cache, update_comment_meta, update_post_cache

Top Google Results

User discussions

wpseek mobile