summaryrefslogtreecommitdiff
path: root/modules/system/system.admin.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-02-05 21:15:43 +0000
committerDries Buytaert <dries@buytaert.net>2010-02-05 21:15:43 +0000
commit17f3807f2baa5b2c665413c1401e7a41515a84fe (patch)
treee55405b3376882b81a5433fb033c52684fcddfd0 /modules/system/system.admin.inc
parent06daeb7d505c7439fa4bf32c150561d7d1cbe8d3 (diff)
downloadbrdo-17f3807f2baa5b2c665413c1401e7a41515a84fe.tar.gz
brdo-17f3807f2baa5b2c665413c1401e7a41515a84fe.tar.bz2
- Patch #566494 by Dave Reid, chx, JoshuaRogers, David_Rothstein, Gábor Hojtsy, moshe weitzman, Rob Loach, TheRec, catch: fixed cron doing a full bootstrap on every page request (including cached ones).
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r--modules/system/system.admin.inc13
1 files changed, 0 insertions, 13 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 372993712..a3ef214d7 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -1560,7 +1560,6 @@ function system_site_information_settings() {
);
$form['#validate'][] = 'system_site_information_settings_validate';
- $form['#submit'][] = 'system_site_information_settings_submit';
return system_settings_form($form, FALSE);
}
@@ -1582,18 +1581,6 @@ function system_site_information_settings_validate($form, &$form_state) {
}
/**
- * Form submit handler for the site-information form.
- */
-function system_site_information_settings_submit($form, &$form_state) {
- // Clear caches when the cron threshold is changed to ensure that the cron
- // image is not contained in cached pages.
- $cron_threshold = variable_get('cron_safe_threshold', DRUPAL_CRON_DEFAULT_THRESHOLD);
- if ($cron_threshold != $form_state['input']['cron_safe_threshold']) {
- cache_clear_all();
- }
-}
-
-/**
* Form builder; Configure error reporting settings.
*
* @ingroup forms