Reference › Functions _get_non_cached_ids ( int[] $object_ids , string $cache_group ): int[]
Since 3.4.0, 6.1.0
Source wp-includes/functions.php:7421Parameters Return Uses Used by Source History Retrieves IDs that are not already present in the cache.
Parameters
$object_idsint[] Array of IDs.
$cache_groupstring The cache group to check against. Return
int[] Array of IDs not present in the cache. Used by · 6 _prime_comment_caches() Adds any comments from the given IDs to the cache that do not already exist in cache. _prime_network_caches() Adds any networks from the given IDs to the cache that do not already exist in cache. _prime_post_caches() Adds any posts from the given IDs to the cache that do not already exist in cache. _prime_site_caches() Adds any sites from the given IDs to the cache that do not already exist in cache. _prime_term_caches() Adds any terms from the given IDs to the cache that do not already exist in cache. cache_users() Retrieves info for user lists to prevent multiple queries by get_userdata(). Source View on Trac ↗ View on GitHub ↗
7421 function _get_non_cached_ids ( $object_ids , $cache_group ) { 7422 $object_ids = array_filter ( $object_ids , '_validate_cache_id' ) ; 7423 $object_ids = array_unique ( array_map ( 'intval' , $object_ids ) , SORT_NUMERIC ) ; 7424 7425 if ( empty ( $object_ids ) ) { 7426 return array ( ) ; 7427 } 7428 7429 $non_cached_ids = array ( ) ; 7430 $cache_values = wp_cache_get_multiple ( $object_ids , $cache_group ) ; 7431 7432 foreach ( $cache_values as $id => $value ) { 7433 if ( false === $value ) { 7434 $non_cached_ids [ ] = ( int ) $id ; 7435 } 7436 } 7437 7438 return $non_cached_ids ; 7439 } History Introduced in 3.4.0 . Unchanged from 6.7.7 through 7.1.0.
6.7.7 6.8.8 6.9.7 7.0.4 7.1.0 Signature, return type and hooks compared across 5 parsed releases.
6.1.0
This function is no longer marked as "private".from the docblock
3.4.0
Introduced.from the docblock
About this page Parsed data Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. Corrections Something wrong on this page? Report it and it gets fixed in the next regeneration.