WPDev.one
Core Function
View Source on Trac ↗

update_comment_cache()

update_comment_cache( mixed $comments, mixed $update_meta_cache = true )

Updates the comment cache of given comments.

Parameters 1 required

Name / Type Description
$comments
WP_Comment[]

Array of comment objects

Required
$update_meta_cache
bool

Whether to update commentmeta cache. Default true.

Return Value

(void)
No return value description available.

Function Information

Since Version
2.3.0
Source File
wp-includes/comment.php
Advertisement