Closed (fixed)
Project:
Drupal core
Component:
watchdog.module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
10 Feb 2004 at 10:40 UTC
Updated:
24 Feb 2004 at 20:20 UTC
watchdog_link calls _watchdog_get_message_types() even when the watchdog menu isn't expanded. This call causes an expensive and unneccsary SQL query.
This patch sets _watchdog_get_message_types() to be called only when the watchdog menu is expanded.
For details see this thread: http://lists.drupal.org/archives/drupal-devel/2004-02/msg00273.html
| Comment | File | Size | Author |
|---|---|---|---|
| watchdog_link.patch | 918 bytes | calanya |
Comments
Comment #1
gábor hojtsyGood idea +1!
Comment #2
gábor hojtsyComment #3
dries commentedI committed a slightly better fix to CVS.
Comment #4
(not verified) commented