diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-04-27 07:35:48 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-04-27 07:35:48 +0000 |
commit | 33368da1a6f58653a8b933198ced85472a71a729 (patch) | |
tree | cba8b70101ffc6de5d1281564b99c3f84184a609 | |
parent | b9f60c75a7ef93382ce7275a3a6d8d4be6e542a5 (diff) | |
download | brdo-33368da1a6f58653a8b933198ced85472a71a729.tar.gz brdo-33368da1a6f58653a8b933198ced85472a71a729.tar.bz2 |
- Patch #343415 by Damien Tournoud: form cache is not cleared on submit when page cache is activated.
-rw-r--r-- | includes/form.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc index 366c6a115..cf2c36468 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -503,7 +503,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'); } |