Hi,
I have just noticed that usually it will say 0 Comments or 2 Comments, but sometimes totally randomly it will say 10.5K Comments which I assume is the total comment count on the website. Any idea why?
There are two possible reasons for this issue.
1. The cache plugin causes the issue.
2. There is another plugin that also uses the get_comments_number() function and messes up the wpDiscuz functions.
Hi, ok so I thought this was because of me using a new cache plugin called LSCache, but I switched back to my old cache plugin WP Rocket and I still see this. I don't think this was the case during the 3+ years I've been using this plugin.
I can see it display 2 comments and then totally randomly (after 20-30 seconds) it switches to display 10.5K comments, which is really weird. Why would it do that even if it was something to do with cache?
To my knowledge, I did not add any new plugin that would use the get_comments_number() function.
Deactivating WP Rocket cache or Redis made no difference.
I deactivated:
- Combine JS and CSS Files to Optimize Page Loading Speed
- Minify JS and CSS Files to Optimize Page Loading Speed
- Live Update
And the issue seems to have gone away...