Index: includes/form.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/form.inc,v
retrieving revision 1.330
diff -u -p -r1.330 form.inc
--- includes/form.inc	29 Apr 2009 07:18:04 -0000	1.330
+++ includes/form.inc	29 Apr 2009 22:24:53 -0000
@@ -503,7 +503,7 @@ function drupal_process_form($form_id, &
       // We'll clear out the cached copies of the form and its stored data
       // here, as we've finished with them. The in-memory copies are still
       // here, though.
-      if (!empty($form_state['values']['form_build_id'])) {
+      if (variable_get('cache', CACHE_DISABLED) == CACHE_DISABLED && !empty($form_state['values']['form_build_id'])) {
         cache_clear_all('form_' . $form_state['values']['form_build_id'], 'cache_form');
         cache_clear_all('storage_' . $form_state['values']['form_build_id'], 'cache_form');
       }
