From 89f115c4f59388e2274e0370c5fedf81f805ec61 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 7 Jun 2008 13:41:48 +0000 Subject: - Patch #169899 by Island Usurper: taxonomy caching not always working. --- modules/taxonomy/taxonomy.module | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/taxonomy/taxonomy.module') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 56f15b119..b26ecf9f2 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -904,6 +904,7 @@ function taxonomy_term_count_nodes($tid, $type = 0) { else { $result = db_query(db_rewrite_sql("SELECT t.tid, COUNT(n.nid) AS c FROM {term_node} t INNER JOIN {node} n ON t.vid = n.vid WHERE n.status = 1 AND n.type = '%s' GROUP BY t.tid"), $type); } + $count[$type] = array(); while ($term = db_fetch_object($result)) { $count[$type][$term->tid] = $term->c; } -- cgit v1.2.3