WPDev.one
Core Function
View Source on Trac ↗

_prime_post_caches()

_prime_post_caches( mixed $ids, mixed $update_term_cache = true, mixed $update_meta_cache = true )

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

Parameters 1 required

Name / Type Description
$ids
int[]

ID list.

Required
$update_term_cache
bool

Optional. Whether to update the term cache. Default true.

$update_meta_cache
bool

Optional. Whether to update the meta cache. Default true.

Return Value

(void)
No return value description available.

Function Information

Since Version
3.4.0
Source File
wp-includes/post.php
Advertisement