Index: wp-includes/post.php
===================================================================
--- wp-includes/post.php	(revision 14194)
+++ wp-includes/post.php	(working copy)
@@ -3993,10 +3993,9 @@
 	update_post_cache($posts);
 
 	$post_ids = array();
+	foreach ( $posts as $post )
+		$post_ids[] = $post->ID;
 
-	for ($i = 0; $i < count($posts); $i++)
-		$post_ids[] = $posts[$i]->ID;
-
 	update_object_term_cache($post_ids, 'post');
 
 	update_postmeta_cache($post_ids);
Index: wp-includes/query.php
===================================================================
--- wp-includes/query.php	(revision 14194)
+++ wp-includes/query.php	(working copy)
@@ -1626,6 +1626,9 @@
 		if ( !isset($q['suppress_filters']) )
 			$q['suppress_filters'] = false;
 
+		if ( !isset($q['cache_results']) )
+			$q['cache_results'] = true;
+
 		if ( !isset($q['post_type']) ) {
 			if ( $this->is_search )
 				$q['post_type'] = 'any';
@@ -2499,7 +2502,8 @@
 			$this->posts[$i] = sanitize_post($this->posts[$i], 'raw');
 		}
 
-		update_post_caches($this->posts);
+		if ( $q['cache_results'] )
+			update_post_caches($this->posts);
 
 		if ($this->post_count > 0) {
 			$this->post = $this->posts[0];
