[drupal-devel] [bug] Throttle doesn't need hook_perm anymore
dries at buytaert.net
Mon Mar 7 20:59:26 UTC 2005
Jeremy Andrews wrote:
>>Since the throttle block has been removed from the throttle module,
>>there is no longer a need for the "access throttle block" permission.
>>Attached patch removes the throttle_perm function.
> Is there now no longer any quick way to see how many pages the Drupal
> engine has served in the past 60 seconds? :-(
It got removed because the throttle module no longer relies on the
number of pages served. Instead, it looks at the number of concurrent
anonymous users and/or the number of concurrent authenticated users.
This simplified both the code and the configuration a great deal. If
you still want such block, create a PHP block that queries the
'sessions' table. It is easy enough.
Dries Buytaert :: http://www.buytaert.net/
More information about the drupal-devel