From 3769665b33d3117324e34d58e47c4369ae0c4f16 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 7 Nov 2004 22:47:00 +0000 Subject: - 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! --- modules/block.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/block.module') 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); -- cgit v1.2.3