diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-10-25 15:38:25 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-10-25 15:38:25 +0000 |
commit | ca0bbfee5b79cec35beccedd7ce0d72455799ab2 (patch) | |
tree | c2d0d8e4d3194525023e0bab45a28149d31e4d6e /modules/system/system.admin.inc | |
parent | 1cf05b0019dbacb1d92297fb334369b23f253834 (diff) | |
download | brdo-ca0bbfee5b79cec35beccedd7ce0d72455799ab2.tar.gz brdo-ca0bbfee5b79cec35beccedd7ce0d72455799ab2.tar.bz2 |
- Modified version of patch #121820 by Caleb et al: add an option for page compression.
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r-- | modules/system/system.admin.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index 925e666a5..458673503 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -1189,6 +1189,13 @@ function system_performance_settings() { '#options' => $period, '#description' => t('On high-traffic sites it can become necessary to enforce a minimum cache lifetime. The minimum cache lifetime is the minimum amount of time that will go by before the cache is emptied and recreated. A larger minimum cache lifetime offers better performance, but users will not see new content for a longer period of time. This setting also affects block caching.') ); + $form['page_cache']['page_compression'] = array( + '#type' => 'radios', + '#title' => t('Page compression'), + '#default_value' => variable_get('page_compression', TRUE), + '#options' => array(t('Disabled'), t('Enabled')), + '#description' => t("By default Drupal compresses the pages it caches in order to save bandwidth, and improve download times for users with slow connections. However, if the webserver also performs compression, it is not just unnecessary, it can also cause problems. So in this case this option should be set to Disabled."), + ); $form['block_cache'] = array( '#type' => 'fieldset', |