Private Access Private Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness. Use update_comment_cache() instead.

Summery Summery

Adds any comments from the given IDs to the cache that do not already exist in cache.

Syntax Syntax

_prime_comment_caches( int[] $comment_ids, bool $update_meta_cache = true )

Parameters Parameters


(Required) Array of comment IDs.


(Optional) Whether to update the meta cache.

Default value: true

Source Source

File: wp-includes/comment.php


	$options            = array();
	$options['timeout'] = 10;
	$options['body']    = array(
		'title'     => $title,
		'url'       => get_permalink( $ID ),
		'blog_name' => get_option( 'blogname' ),
		'excerpt'   => $excerpt,


Changelog Changelog

Version Description
4.4.0 Introduced.

See also See also


Leave a Reply