update_comment_cache [ WordPress Function ]
| Parameters: |
|
| Defined at: |
|
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.
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- _wp_get_comment_list | A HitchHackers guide through WordPress
Feb 12, 2011... $wpdb->get_var("SELECT COUNT(c.comment_ID) $query"); update_comment_cache($comments); return array($comments, $total); }. 4393 ...
hitchhackerguide.com - display_name )); } printf( _c( '%1$s%2$s%3 - Filer
'spam' ORDER BY comment_date"); if ( $comments ) : // Make sure comments, post, and post_author are cached update_comment_cache($comments); $post ...
filer.case.edu - WordPress comments_template() and wp_list_comments ...
Feb 22, 2011 ... The OP worked around his problems by commenting out the call to update_comment_cache(). My interest was in reducing the CPU usage on ...
maisonbisson.com - installation - WordPress 3.1 Install Error - WordPress
Mar 14, 2011... update_comment_cache($comments) { foreach ( (array) $comments as $ comment ) wp_cache_add($comment->comment_ID, $comment, ...
wordpress.stackexchange.com