From 86ddee8dc586e57456c9bc8fc97fe1c15b4b1c4e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 15 Apr 2003 19:10:02 +0000 Subject: [PATCH] - I have added an option to enable/disable cron support. - Updated the cache system's documentation - it was no longer current. --- modules/system.module | 13 +++++++++---- modules/system/system.module | 13 +++++++++---- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/modules/system.module b/modules/system.module index 6d70f9bfe40..ae597b169f2 100644 --- a/modules/system.module +++ b/modules/system.module @@ -3,8 +3,8 @@ function system_help() { $output .= "

Drupal comes with system-wide defaults but the setting-module provides control over many Drupal preferences, behaviors including visual and operational settings.

"; - $output .= "

Cache

". system_help_cache(); - $output .= "

Cron

". system_help_cron(); + $output .= "

Cron

". system_help_cron(); + $output .= "

Cache

". system_help_cache(); return $output; } @@ -15,7 +15,6 @@ function system_system($field) { function system_help_cache() { $output .= "

Drupal has a caching mechanism that stores dynamically generated pages in a database. By caching a page, Drupal does not have to generate the page each time it is requested. Only pages requested by anonymous users are being cached. When a cached page is accessed, Drupal will retrieve that page with minimal overhead using one SQL query only, thus reducing both the server load and the response time.

"; - $output .= "

Drupal's caching mechanism can be enabled and disabled by the site administrators from the 'settings' page. Site administrators can also define how long cached pages should be kept.

"; return $output; } @@ -81,11 +80,17 @@ function system_view_general() { $output .= form_select(t("Clean URLs"), "clean_url", variable_get("clean_url", 0), array(t("Disabled"), t("Enabled")), t("Enable or disable clean URLs. If enabled, you'll need ModRewrite support. See also the .htaccess file in Drupal's top-level directory.")); $output .= "
\n"; + // cron: + $output .= "

". t("Cron settings") ."

\n"; + $output .= form_select(t("Cron support"), "cron", variable_get("cron", 1), array(t("Disabled"), t("Enabled")), t("Enable or disable cron support. Enable this setting if you have setup a cron job. Check the ". l("cron documentation", "admin/system/help#cron") ." for information on setting up a cron job.")); + $output .= "
\n"; + // caching: $output .= "

". t("Cache settings") ."

\n"; - $output .= form_select(t("Cache support"), "cache", variable_get("cache", 0), array(t("Disabled"), t("Enabled")), t("Enable or disable the caching of rendered pages. When caching is enabled, Drupal will flush the cache when required to make sure updates take effect immediately.")); + $output .= form_select(t("Cache support"), "cache", variable_get("cache", 0), array(t("Disabled"), t("Enabled")), t("Enable or disable the caching of rendered pages. When caching is enabled, Drupal will flush the cache when required to make sure updates take effect immediately. Check the ". l("cache documentation", "admin/system/help#cache") ." for information on Drupal's cache system.")); $output .= "
\n"; + // submission settings: $output .= "

". t("Submission settings") ."

\n"; $rate = array(-10000 => "Disabled", 1 => "Maximum 1 every second", 5 => "Maximum 1 every 5 seconds", 15 => "Maximum 1 every 15 seconds", 30 => "Maximum 1 every 30 seconds", 60 => "Maximum 1 every minute", 300 => "Maximum 1 every 5 minutes", 900 => "Maximum 1 every 15 minutes", 1800 => "Maximum 1 every 30 minutes", 3600 => "Maximum 1 every hour", 21600 => "Maximum 1 every 6 hours", 43200 => "Maximum 1 every 12 hours"); diff --git a/modules/system/system.module b/modules/system/system.module index 6d70f9bfe40..ae597b169f2 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -3,8 +3,8 @@ function system_help() { $output .= "

Drupal comes with system-wide defaults but the setting-module provides control over many Drupal preferences, behaviors including visual and operational settings.

"; - $output .= "

Cache

". system_help_cache(); - $output .= "

Cron

". system_help_cron(); + $output .= "

Cron

". system_help_cron(); + $output .= "

Cache

". system_help_cache(); return $output; } @@ -15,7 +15,6 @@ function system_system($field) { function system_help_cache() { $output .= "

Drupal has a caching mechanism that stores dynamically generated pages in a database. By caching a page, Drupal does not have to generate the page each time it is requested. Only pages requested by anonymous users are being cached. When a cached page is accessed, Drupal will retrieve that page with minimal overhead using one SQL query only, thus reducing both the server load and the response time.

"; - $output .= "

Drupal's caching mechanism can be enabled and disabled by the site administrators from the 'settings' page. Site administrators can also define how long cached pages should be kept.

"; return $output; } @@ -81,11 +80,17 @@ function system_view_general() { $output .= form_select(t("Clean URLs"), "clean_url", variable_get("clean_url", 0), array(t("Disabled"), t("Enabled")), t("Enable or disable clean URLs. If enabled, you'll need ModRewrite support. See also the .htaccess file in Drupal's top-level directory.")); $output .= "
\n"; + // cron: + $output .= "

". t("Cron settings") ."

\n"; + $output .= form_select(t("Cron support"), "cron", variable_get("cron", 1), array(t("Disabled"), t("Enabled")), t("Enable or disable cron support. Enable this setting if you have setup a cron job. Check the ". l("cron documentation", "admin/system/help#cron") ." for information on setting up a cron job.")); + $output .= "
\n"; + // caching: $output .= "

". t("Cache settings") ."

\n"; - $output .= form_select(t("Cache support"), "cache", variable_get("cache", 0), array(t("Disabled"), t("Enabled")), t("Enable or disable the caching of rendered pages. When caching is enabled, Drupal will flush the cache when required to make sure updates take effect immediately.")); + $output .= form_select(t("Cache support"), "cache", variable_get("cache", 0), array(t("Disabled"), t("Enabled")), t("Enable or disable the caching of rendered pages. When caching is enabled, Drupal will flush the cache when required to make sure updates take effect immediately. Check the ". l("cache documentation", "admin/system/help#cache") ." for information on Drupal's cache system.")); $output .= "
\n"; + // submission settings: $output .= "

". t("Submission settings") ."

\n"; $rate = array(-10000 => "Disabled", 1 => "Maximum 1 every second", 5 => "Maximum 1 every 5 seconds", 15 => "Maximum 1 every 15 seconds", 30 => "Maximum 1 every 30 seconds", 60 => "Maximum 1 every minute", 300 => "Maximum 1 every 5 minutes", 900 => "Maximum 1 every 15 minutes", 1800 => "Maximum 1 every 30 minutes", 3600 => "Maximum 1 every hour", 21600 => "Maximum 1 every 6 hours", 43200 => "Maximum 1 every 12 hours");