Index: src/wp-includes/post.php
===================================================================
--- src/wp-includes/post.php	(revision 37350)
+++ src/wp-includes/post.php	(working copy)
@@ -4248,6 +4248,18 @@
 
 	$post_types = esc_sql( $post_types );
 	$post_type_in_string = "'" . implode( "','", $post_types ) . "'";
+
+	$key          = $in_string . ":" . $post_type_in_string;
+	$last_changed = wp_cache_get( 'last_changed', 'posts' );
+	if ( ! $last_changed ) {
+		$last_changed = microtime();
+		wp_cache_set( 'last_changed', $last_changed, 'posts' );
+	}
+	$cache_key = "get_page_by_path:$key:$last_changed";
+	if ( $cache = wp_cache_get( $cache_key, 'posts' ) ) {
+           return get_post( $cache, $output );
+	}
+
 	$sql = "
 		SELECT ID, post_name, post_parent, post_type
 		FROM $wpdb->posts
@@ -4284,6 +4296,8 @@
 			}
 		}
 	}
+    
+	wp_cache_set( $cache_key, $foundid, 'posts' ); 
 
 	if ( $foundid ) {
 		return get_post( $foundid, $output );
