diff --git wp-includes/functions.php wp-includes/functions.php
index 8200695..5940502 100644
--- wp-includes/functions.php
+++ wp-includes/functions.php
@@ -3859,13 +3859,18 @@ function wp_debug_backtrace_summary( $ignore_class = null, $skip_frames = 0, $pr
  */
 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;
+	if ( function_exists( 'wp_cache_get_multi' ) ) {
+		$posts = wp_cache_get_multi( $object_ids, $cache_key );
+		$found_ids = wp_list_pluck( $posts, 'ID' );
+		$clean = array_diff( $object_ids, $found_ids );
+	} else {
+		foreach ( $object_ids as $id ) {
+			$id = (int) $id;
+			if ( !wp_cache_get( $id, $cache_key ) ) {
+				$clean[] = $id;
+			}
 		}
 	}
-
 	return $clean;
 }
 
