I just updated a site from EE1 to EE2 that had pretty much nothing but spam comments. I deleted all the comments with a query:
DELETE FROM exp_comments WHERE status = 'o';
But on the blog listing page, the {comment_total}
tag is still showing that comments exist. For example:
<a href="{path='blog/post'}">{comment_total} Comment(s) »</a>
Returns
4 Comments »
Even though there are no comments in the database for that entry.
I also went into the exp_channels
table and set the total_comments
column to 0 for the blog channel.
When I upgraded from EE1 to 2, I opted to convert trackbacks to comments, could that be what's causing the phantom comments? There's no exp_trackbacks
table anymore, so I'm not sure where they might be hiding.
I guess ultimately what I need to know is where does EE get its comment_total
count from?