From 13c9e7f94bb2492186abbff352fdf77a4b579c40 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 30 Apr 2009 15:20:06 +0000 Subject: - Rolled back patch #343415. Needs more work and discussion. --- 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 7131227b9..f47981a8f 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 (!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'); } -- cgit v1.2.3