Index: includes/form.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/form.inc,v
retrieving revision 1.432
diff -u -p -r1.432 form.inc
--- includes/form.inc	12 Feb 2010 15:11:29 -0000	1.432
+++ includes/form.inc	17 Feb 2010 15:48:43 -0000
@@ -328,9 +328,8 @@ function drupal_rebuild_form($form_id, &
   drupal_prepare_form($form_id, $form, $form_state);
 
   if (empty($form_state['no_cache'])) {
-    // We cache the form structure so it can be retrieved later for validation.
-    // If $form_state['storage'] is populated, we also cache it so that it can
-    // be used to resume complex multi-step processes.
+    // We cache the form structure and the form state so it can be retrieved
+    // later for validation.
     form_set_cache($form_build_id, $form, $form_state);
   }
 
@@ -396,8 +395,6 @@ function form_state_keys_no_cache() {
   return array(
     // Public properties defined by form constructors and form handlers.
     'always_process',
-    'cache',
-    'no_cache',
     'must_validate',
     'rebuild',
     'redirect',
Index: modules/simpletest/tests/form_test.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/tests/form_test.module,v
retrieving revision 1.28
diff -u -p -r1.28 form_test.module
--- modules/simpletest/tests/form_test.module	8 Feb 2010 22:16:11 -0000	1.28
+++ modules/simpletest/tests/form_test.module	17 Feb 2010 15:49:01 -0000
@@ -144,6 +144,11 @@ function form_test_validate_form($form, 
     '#type' => 'submit',
     '#value' => 'Save',
   );
+
+  // To simplify this test, enable form caching and use form storage to
+  // remember our alteration.
+  $form_state['cache'] = TRUE;
+
   return $form;
 }
 
@@ -161,9 +166,6 @@ function form_test_element_validate_name
     $triggered = TRUE;
   }
   if ($form_state['values']['name'] == 'element_validate_access') {
-    // To simplify this test, enable form caching and use form storage to
-    // remember our alteration.
-    $form_state['cache'] = TRUE;
     $form_state['storage']['form_test_name'] = $form_state['values']['name'];
     // Alter the form element.
     $element['#access'] = FALSE;
@@ -453,9 +455,6 @@ function form_test_storage_element_valid
   // though.
   if (isset($_REQUEST['cache']) && $form_state['values']['value'] == 'change_title') {
     $form_state['storage']['thing']['changed'] = TRUE;
-    // @todo Fix FAPI to make it unnecessary to explicitly set the cache flag in
-    //   this situation. @see http://drupal.org/node/641356.
-    $form_state['cache'] = TRUE;
   }
 }
 
