diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-06-07 13:41:48 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-06-07 13:41:48 +0000 |
commit | 89f115c4f59388e2274e0370c5fedf81f805ec61 (patch) | |
tree | 630b855e45989951a4b607fed32e5d70d41546c9 | |
parent | 3ec46f935a988c988f9a017002b86f6def415ec4 (diff) | |
download | brdo-89f115c4f59388e2274e0370c5fedf81f805ec61.tar.gz brdo-89f115c4f59388e2274e0370c5fedf81f805ec61.tar.bz2 |
- Patch #169899 by Island Usurper: taxonomy caching not always working.
-rw-r--r-- | modules/taxonomy/taxonomy.module | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |