From a8b8c247db070d96a663ab8bb57a40ead173300a Mon Sep 17 00:00:00 2001
From: Dries Buytaert Drupal comes with system-wide defaults but the setting-module provides control over many Drupal preferences, behaviours including visual and operational settings. Whenever %cron-link is accessed, cron will run: it calls the _cron hook in each module allowing the module to run tasks if they have not been executed in the last n seconds, where n is the period of that task. When all the tasks are finished, cron is done. The recommended way to set up your cron system is to set up a Unix/Linux crontab entry (see \"man crontab\") that frequently visits %cron-link. Note that cron does not guarantee the commands will be executed at the specified interval. However, Drupal will try its best to run the tasks as close to the specified intervals as possible. The more you visit cron.php, the more accurate cron will be. If your hosting company does not allow you to set up crontab entries, you can always ask someone else to set up an entry for you. After all, virtually any Unix/Linux machine with access to the internet can set up a crontab entry to frequently visit %cron-link. For the Unix/Linux crontab itself, use a browser like %lynx or %wget but make sure the process terminates: either use For the Unix/Linux crontab itself, use a browser like lynx or wget but make sure the process terminates: either use Cron
";
// Start of system_help_cron
@@ -24,7 +23,7 @@ function system_help($section = "admin/help#system") {
$output .= "/usr/bin/lynx -source %base_url/cron.php
or /usr/bin/wget -o /dev/null -O /dev/null %cron-link
. Take a look at the example scripts in the scripts
-directory. Make sure to adjust them to fit your needs. A good crontab line to run the cron script once every hour would be:";
+ $output .= "/usr/bin/lynx -source %base_url/cron.php
or /usr/bin/wget -o /dev/null -O /dev/null %cron-link
. Take a look at the example scripts in the scripts
-directory. Make sure to adjust them to fit your needs. A good crontab line to run the cron script once every hour would be:";
$output .= " 00 * * * * /home/www/drupal/scripts/cron-lynx.sh
";
$output .= "Note that it is essential to access cron.php
using a browser on the web site's domain; do not run it using command line PHP and avoid using localhost
or 127.0.0.1
or some of the environment varibles will not be set correctly and features may not work as expected.
Drupal has a caching mechanism which stores dynamically generated web pages in a database. By caching a web page, Drupal does not have to create the page each time someone wants to view it, instead it takes only one SQL query to display it, reducing response time and the server's load. Only pages requested by \"anonymous\" users are cached.
"; // End of system_help_cache - $output = t($output, array("%base_url" => $base_url, "%cron-link" => "$base_url/cron.php", "%lynx" => "lynx", "%wget" => "wget" )); + $output = t($output, array("%base_url" => $base_url, "%cron-link" => "$base_url/cron.php", "%lynx" => "http://lynx.browser.org", "%wget" => "http://www.gnu.org/software/wget/wget.html" )); break; case 'admin/system/modules#description': $output = t("Configuration system that lets administrators modify the workings of the site."); @@ -118,7 +117,7 @@ function system_view_general() { $output = form_group(t("General settings"), $group); // caching: - $group = form_radios(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 %documentation for information on Drupal's cache system.", array("%documentation" => l(t("cache documentation"), "admin/system/help", NULL, NULL, "cache")))); + $group = form_radios(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 cache documentation for information on Drupal's cache system.", array("%documentation" => url("admin/system/help", NULL, NULL, "cache")))); $output .= form_group(t("Cache settings"), $group); -- cgit v1.2.3