From e3d62d907b07dbace7404fb378a97e8d38cf1e9e Mon Sep 17 00:00:00 2001
From: Dries Buytaert 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 /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:
00 * * * * /home/www/drupal/scripts/cron-lynx.sh
- 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 variables 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. In order to reduce server load and save bandwidth, Drupal stores and sends cached pages compressed.
", 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' )); + Note that it is essential to accesscron.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 variables will not be set correctly and features may not work as expected.", 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' ));
case 'admin/modules#description':
return t('Handles general site configuration for administrators.');
}
@@ -225,7 +223,7 @@ function system_view_general() {
$output .= form_group(t('Error handling'), $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 cache documentation for information on Drupal\'s cache system.', array('%documentation' => url('admin/help', NULL, NULL, 'cache'))));
+ $group = form_radios(t('Page cache'), 'cache', variable_get('cache', CACHE_DISABLED), array(CACHE_DISABLED => t('Disabled (low-traffic sites)'), CACHE_ENABLED_STRICT => t('Strict (medium-traffic sites)'), CACHE_ENABLED_LOOSE => t('Loose (high-traffic sites)')), t("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. In order to reduce server load and save bandwidth, Drupal stores and sends cached pages compressed. Drupal supports strict caching and loose caching. Strict caching immediately deletes cached data as soon as it becomes invalid for any user. Loose caching delays the deletion of cached data to provide better performance for high traffic sites."));
$output .= form_group(t('Cache settings'), $group);
diff --git a/modules/system/system.module b/modules/system/system.module
index 5d75bba29..a5d4133a4 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -35,9 +35,7 @@ function system_help($section) {
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 /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:
00 * * * * /home/www/drupal/scripts/cron-lynx.sh- 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 variables 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. In order to reduce server load and save bandwidth, Drupal stores and sends cached pages compressed.
", 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' )); + Note that it is essential to accesscron.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 variables will not be set correctly and features may not work as expected.", 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' ));
case 'admin/modules#description':
return t('Handles general site configuration for administrators.');
}
@@ -225,7 +223,7 @@ function system_view_general() {
$output .= form_group(t('Error handling'), $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 cache documentation for information on Drupal\'s cache system.', array('%documentation' => url('admin/help', NULL, NULL, 'cache'))));
+ $group = form_radios(t('Page cache'), 'cache', variable_get('cache', CACHE_DISABLED), array(CACHE_DISABLED => t('Disabled (low-traffic sites)'), CACHE_ENABLED_STRICT => t('Strict (medium-traffic sites)'), CACHE_ENABLED_LOOSE => t('Loose (high-traffic sites)')), t("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. In order to reduce server load and save bandwidth, Drupal stores and sends cached pages compressed. Drupal supports strict caching and loose caching. Strict caching immediately deletes cached data as soon as it becomes invalid for any user. Loose caching delays the deletion of cached data to provide better performance for high traffic sites."));
$output .= form_group(t('Cache settings'), $group);
--
cgit v1.2.3