summaryrefslogtreecommitdiff
path: root/modules/forum.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-11-04 21:02:30 +0000
committerDries Buytaert <dries@buytaert.net>2004-11-04 21:02:30 +0000
commit14353d18ad4682ed6f1e3ab554ef85c42a2bafee (patch)
treee101e98ec87d7762c5c54315bec719d6d80ba32e /modules/forum.module
parent7ad36e3f59b9e50e7da68dff87a254eac4084977 (diff)
downloadbrdo-14353d18ad4682ed6f1e3ab554ef85c42a2bafee.tar.gz
brdo-14353d18ad4682ed6f1e3ab554ef85c42a2bafee.tar.bz2
- Slightly modified the API of node_title_list(): it will no longer call comment_num_all() for each node. Instead, it checks for the availability of the node_comment field, available through the node_comment_statistics table. If updated the Doxygen comments accordingly.
People were using node_title_list() without realizing it would do numereous database queries. This change greatly reduces the number of database queries required to render the node statistics block as well as to render the forum block (coming up next). If your module is using node_title_list() and you want the number of comments to be shown as title attributes, chances are you have to update your SQL query to join node_comment_statistics.
Diffstat (limited to 'modules/forum.module')
0 files changed, 0 insertions, 0 deletions