User: marvil07 Branch: HEAD Date: Wed, 24 Nov 2010 06:36:14 +0000 Modified files: /modules/vote_up_down WIDGETAPI.txt vud.theme.inc /modules/vote_up_down/widgets/upanddown upanddown.inc Log message: bug #962996 by catch, marvil07: Avoid unnecessary queries in vud_widget_proxy(). - Added a permissions check to confirm whether the user viewing the widget is allowed to vote or not before trying to look up their vote, this saves 90 queries when viewing 90 comments showing the widget. - Only query positives and negatives for upanddown widget. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/vote_up_down/WIDGE... http://cvs.drupal.org/diff.php?path=contributions/modules/vote_up_down/vud.t... http://cvs.drupal.org/diff.php?path=contributions/modules/vote_up_down/widge...