Index: modules/taxonomy/taxonomy.module
===================================================================
--- modules/taxonomy/taxonomy.module      (revision 554)
+++ modules/taxonomy/taxonomy.module      (working copy)
@@ -610,9 +610,11 @@
 /**
  * Find all terms associated with the given node, ordered by vocabulary and term weight.
  */
-function taxonomy_node_get_terms($node, $key = 'tid') {
+function taxonomy_node_get_terms($node, $key = 'tid', $reset = false) {
   static $terms;
-
+  if($reset){
+    $terms=array();
+  }
   if (!isset($terms[$node->vid][$key])) {
     $result = db_query(db_rewrite_sql('SELECT t.* FROM {term_node} r INNER JOIN {term_data} t ON r.tid = t.tid INNER JOIN {vocabulary} v ON t.vid = v.vid WHERE r.vid = %d ORDER BY v.weight, t.weight, t.name', 't', 'tid'), $node->vid);
     $terms[$node->vid][$key] = array();
