summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-11-07 22:47:00 +0000
committerDries Buytaert <dries@buytaert.net>2004-11-07 22:47:00 +0000
commit3769665b33d3117324e34d58e47c4369ae0c4f16 (patch)
tree02ea70a91057b0947315179a16b9f8d6b083e539 /includes
parentf01bd675c0a6cb2d7832053cef23718d9783d8f9 (diff)
downloadbrdo-3769665b33d3117324e34d58e47c4369ae0c4f16.tar.gz
brdo-3769665b33d3117324e34d58e47c4369ae0c4f16.tar.bz2
- Refactored the throttle module. Patch by Jeremy and me.
* There are only two throttle levels instead of 5, namely 'enabled' and 'disabled'. This makes it a _lot_ easier to predict when the throttle will kick in. However, if you maintain a module that is throttle-aware, it needs to be updated! * The throttle mechanism now uses the current number of anonymous users or the current number of authenticated users to kick in. This is a _lot_ more intuitive than the old throttle mechanism. * The throttle block has been removed -- you can now use the "Who's online" block to determine the good throttle settings. * Most of the documentation has been removed because it was deprecated. * It's less code!
Diffstat (limited to 'includes')
-rw-r--r--includes/module.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/module.inc b/includes/module.inc
index 543c51057..e4ac60dda 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -59,7 +59,7 @@ function module_list($refresh = FALSE, $bootstrap = FALSE) {
// Determine the current throttle status and see if the module should be
// loaded based on server load. We have to directly access the throttle
// variables, since throttle.module may not be loaded yet.
- $throttle = ($module->throttle && variable_get('throttle_level', 0) > 4);
+ $throttle = ($module->throttle && variable_get('throttle_level', 0) > 0);
if (!$throttle) {
$list[$module->name] = $module->name;
module_set_filename($module->name, $module->filename);