diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-11-07 22:47:00 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-11-07 22:47:00 +0000 |
commit | 3769665b33d3117324e34d58e47c4369ae0c4f16 (patch) | |
tree | 02ea70a91057b0947315179a16b9f8d6b083e539 /modules/block.module | |
parent | f01bd675c0a6cb2d7832053cef23718d9783d8f9 (diff) | |
download | brdo-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 'modules/block.module')
-rw-r--r-- | modules/block.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/block.module b/modules/block.module index 5383f3ac4..406b0ef19 100644 --- a/modules/block.module +++ b/modules/block.module @@ -422,7 +422,7 @@ function block_list($region) { if ($enabled && $matched) { // Check the current throttle status and see if block should be displayed // based on server load. - if (!($block['throttle'] && (module_invoke('throttle', 'status') > 4))) { + if (!($block['throttle'] && (module_invoke('throttle', 'status') > 0))) { $array = module_invoke($block['module'], 'block', 'view', $block['delta']); if (is_array($array)) { $block = array_merge($block, $array); |