関数 _get_non_cached_ids()
定義ファイル :/blog/wp-includes/functions.php 21
_get_non_cached_ids()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | /** * Retrieve ids that are not already present in the cache. * * @since 3.4.0 * @access private * * @param array $object_ids ID list. * @param string $cache_key The cache bucket to check against. * * @return array List of ids not present in the cache. */ function _get_non_cached_ids( $object_ids, $cache_key ) { $clean = array(); foreach ( $object_ids as $id ) { $id = (int) $id; if ( !wp_cache_get( $id, $cache_key ) ) { $clean[] = $id; } } return $clean; } |