diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-15 08:45:32 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-15 08:45:32 +0000 |
commit | 2d6b6d492f9757ee19d992f90d73b99235f58609 (patch) | |
tree | ee1c41a0043d643779b9510f61611a38675d1b3e /modules/system/system.admin.inc | |
parent | b792a6df2da73a59aaa75b0d3c0cb45e3eace17a (diff) | |
download | brdo-2d6b6d492f9757ee19d992f90d73b99235f58609.tar.gz brdo-2d6b6d492f9757ee19d992f90d73b99235f58609.tar.bz2 |
- Patch #566494 by Dave Reid, chx, JoshuaRogers, David_Rothstein, Rob Loach, TheRec, moshe weitzman: cron image does a full bootstrap on every page request so changing to a Javascript-based solution instead. Important performance fix -- what were we smoking? ;-)
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r-- | modules/system/system.admin.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index d0b3a6226..1d326da95 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -1496,7 +1496,7 @@ 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 > 0 && $form_state['input']['cron_safe_threshold'] == 0) || ($cron_threshold == 0 && $form_state['input']['cron_safe_threshold'] > 0)) { + if ($cron_threshold != $form_state['input']['cron_safe_threshold']) { cache_clear_all(); } } |