#343415 by Damien Tournoud: the form cache is not automatically cleared on submit if the page cache is activated.

From: Damien Tournoud <damien@tournoud.net>


---

 includes/form.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git includes/form.inc includes/form.inc
index 2de5fc7..4210fe7 100644
--- includes/form.inc
+++ includes/form.inc
@@ -411,7 +411,7 @@ function drupal_process_form($form_id, &$form, &$form_state) {
       // 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 (variable_get('cache', CACHE_DISABLED) == CACHE_DISABLED && !empty($form_state['values']['form_build_id'])) {
+      if (!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');
       }
