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

CommentFileSizeAuthor
watchdog_link.patch918 bytescalanya

Comments

gábor hojtsy’s picture

Category: drupal » 5772

Good idea +1!

gábor hojtsy’s picture

Category: 5772 » task
dries’s picture

I committed a slightly better fix to CVS.

Anonymous’s picture