Hello there @chrisbergr,
hope you’re doing well today! π
Are you using native WP comments? Or maybe another plugin/service for these? Please advise!
Also, have you tried to replicate this in a staging environment using a default theme like TwentySeventeen? I did such a test on a fresh website and I couldn’t replicate this, so it could also include the way the theme is fetching these comments.
Please let me know if the users in order to comment they have to be logged in.
Also, when you test visiting the article, are you using a logged-in or logged-out user?
Warm regards,
Dimitris
Hi Dimitris,
I’m testing with logged-out users in different Google Chrome profiles.
I’m visiting the mainpage with profile 1. Clicking on the article and see the comments there.
In profile 2 I’m also visiting the mainpage, following the link to the article and post a comment there.
Back to profile 1 I click on the page title to go back to the mainpage. There I see the comments count with old value. After pressing refresh, this count gets updated. When I enter the article again, sometimes the new comment is shown, sometime not – until I also press refresh.
I’ve reproduced this described behavior on a fresh install with Twenty Nineteen theme and Hummingbird as the only installed Plugin. – My fresh install can be found at hoboro.de – just in case π
I hope that helps.
Best, Chris
Hello @chrisbergr
Is this happening only when testing between Chrome profiles? Please advise!
I tried with these as well as with different browsers and still couldn’t replicate this in your site.
Thank you,
Dimitris
Hi Dimitris,
thank you for your efforts.
I’ve done exactly the same as described in my comment before, switched profile 1 with Opera and profile 2 with Firefox.
Going back to the mainpage in Opera after commenting in Firefox displayed me the correct new count, but after visiting the article again, the old comments count displays again and the new comment is missing – until I press refresh.
Thanks,
Chris
Hello there @chrisbergr
Please check the following screencast and let me know if we’re doing the same test: https://monosnap.com/file/2xcNP18a5zOeutAj8zIVsmcoZYgxSB
Warm regards,
Dimitris
Hi Dimitris,
thank you again for your efforts and sorry for my late reply.
The difference is that you’re using an anonymous browser window with clear cache (and open the page after the comment is already written). In other words you’re simulating a new users first visit experience.
I’m talking about the scenario where at least two people visiting the page simultaneously. One of them writes a comment and the other one will not notice it.
Visit the page with chrome and go to the article. Visit the page again with firefox, go also to the article and write a comment. Switch back to chrome, click on the site title an you’ll see the old comments count.
Regards,
Chris
Hello there @chrisbergr
I was testing this as you mentioned using just separate Chrome windows. Being logged in to Chrome shouldn’t cause any additional caching or something like that… :/
In order to better troubleshoot this, could you please send me an email to contact@wpmudev.org using this template:
Subject: “Attn: Dimitris”
Message: link back to this thread for reference
Keep in mind the subject line as ensures that it gets assigned to me.
Thank you,
Dimitris
Hello @chrisbergr
I trust all is well!
We’ve not heard from you in a while. I’ve marked this ticket as resolved for now, but if you need anything else at all, we’re here for you, please just reopen the ticket or create a new one.
Have a good day and take care!
Cheers,
Nastia