Uses
Uses | Description |
---|---|
wp-includes/cache.php: wp_cache_get_multiple() | Retrieves multiple values from the cache in one call. |
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.
Retrieve IDs that are not already present in the cache.
(int[]) (Required) Array of IDs.
(string) (Required) The cache bucket to check against.
(int[]) Array of IDs not present in the cache.
File: wp-includes/functions.php
function _get_non_cached_ids( $object_ids, $cache_key ) { $non_cached_ids = array(); $cache_values = wp_cache_get_multiple( $object_ids, $cache_key ); foreach ( $cache_values as $id => $value ) { if ( ! $value ) { $non_cached_ids[] = (int) $id; } } return $non_cached_ids; }
Version | Description |
---|---|
3.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_get_non_cached_ids