? nodewords-929082.patch
Index: nodewords.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nodewords/nodewords.module,v
retrieving revision 1.57.2.356
diff -u -p -r1.57.2.356 nodewords.module
--- nodewords.module	30 May 2010 01:44:53 -0000	1.57.2.356
+++ nodewords.module	1 Oct 2010 22:22:46 -0000
@@ -890,10 +890,14 @@ function _nodewords_get_tags_data($name,
 }
 
 function _nodewords_get_tags_data_query($options) {
-  return db_query(
-    "SELECT * FROM {nodewords} WHERE type = %d AND id = %d",
-    $options['type'], $options['id']
-  );
+  static $queries = array();
+  if (empty($queries[$options['type']][$options['id']])) {
+    $queries[$options['type']][$options['id']] = db_query(
+      "SELECT * FROM {nodewords} WHERE type = %d AND id = %d",
+      $options['type'], $options['id']
+    );
+  }
+  return $queries[$options['type']][$options['id']];
 }
 
 function _nodewords_get_type_strings() {
