diff --git wp-includes/query.php wp-includes/query.php
index f47a860a..c22136d 100644
--- wp-includes/query.php
+++ wp-includes/query.php
@@ -2745,13 +2745,14 @@ class WP_Query {
 
 		$this->post_count = count($this->posts);
 
-		// Sanitize before caching so it'll only get done once
-		for ( $i = 0; $i < $this->post_count; $i++ ) {
-			$this->posts[$i] = sanitize_post($this->posts[$i], 'raw');
-		}
+		if ( $q['cache_results'] ) {
+			// Sanitize before caching so it'll only get done once
+			for ( $i = 0; $i < $this->post_count; $i++ ) {
+				$this->posts[$i] = sanitize_post($this->posts[$i], 'raw');
+			}
 
-		if ( $q['cache_results'] )
 			update_post_caches($this->posts, $post_type, $q['update_post_term_cache'], $q['update_post_meta_cache']);
+		}
 
 		if ( $this->post_count > 0 ) {
 			$this->post = $this->posts[0];
