Index: wp-includes/post.php
===================================================================
--- wp-includes/post.php	(revision 23315)
+++ wp-includes/post.php	(working copy)
@@ -3652,8 +3652,10 @@
 	// $args can be whatever, only use the args defined in defaults to compute the key
 	$key = md5( serialize( compact(array_keys($defaults)) ) );
 	$last_changed = wp_cache_get( 'last_changed', 'posts' );
-	if ( ! $last_changed )
-		$last_changed = wp_cache_set( 'last_changed', 1, 'posts' );
+	if ( ! $last_changed ) {
+		wp_cache_set( 'last_changed', 1, 'posts' );
+		$last_changed = 1;
+	}
 
 	$cache_key = "get_pages:$key:$last_changed";
 	if ( $cache = wp_cache_get( $cache_key, 'posts' ) ) {
Index: wp-includes/comment.php
===================================================================
--- wp-includes/comment.php	(revision 23315)
+++ wp-includes/comment.php	(working copy)
@@ -250,8 +250,10 @@
 		// $args can be whatever, only use the args defined in defaults to compute the key
 		$key = md5( serialize( compact(array_keys($defaults)) )  );
 		$last_changed = wp_cache_get( 'last_changed', 'comment' );
-		if ( ! $last_changed )
-			$last_changed = wp_cache_set( 'last_changed', 1, 'comment' );
+		if ( ! $last_changed ) {
+			wp_cache_set( 'last_changed', 1, 'comment' );
+			$last_changed = 1;
+		}
 		$cache_key = "get_comments:$key:$last_changed";
 
 		if ( $cache = wp_cache_get( $cache_key, 'comment' ) )
