From 33368da1a6f58653a8b933198ced85472a71a729 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 27 Apr 2009 07:35:48 +0000 Subject: - Patch #343415 by Damien Tournoud: form cache is not cleared on submit when page cache is activated. --- includes/form.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') 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'); } -- cgit v1.2.3