We have Discourse set to send comments to WordPress via webhook, using the Sync Comment Data option in the WordPress Discourse plug-in. That has, for the most part, worked fine. Recently, however, we’ve seen some situations where we’ll post an article in WordPress and the topic will be created in Discourse, but WordPress won’t display a link to create the first post. I’ve seen both nothing show up in that area, and “Comments aren’t available for this post.” Other times we’ll get the proper link, which in our case is “Join the discussion in the TidBITS Discourse forum,” but posts made in that topic won’t migrate back to WordPress.
We are using CloudFlare, but I put it in dev mode so it wasn’t caching anything, changed some posts on Discourse, and saw no difference. So I turned CloudFlare back on.
Next I turned off the Sync Comment Data checkbox and waited 10 minutes. That fixed things to a large extent—the posts that didn’t have the initial link to Discourse got them, and one post that had only the starting link brought in the posts associated with it. There was another article that knew it had two comments in WordPress, even though there were four in Discourse, and that didn’t update. I’ve fiddled with that topic in Discourse to see if that causes it to refresh.
So it seems that the Sync Comment Data webhook just isn’t working reliably. However, when I go look at the webhook’s events page, everything claims to have posted successfully.
I’m not too perturbed about a several-minute delay in syncing of comments from Discourse back to WordPress if the Sync Comment Data webhook can’t be relied on. But are there any other downsides to not using it? There was a comment about more API calls, but I don’t know if that’s a real problem or not.
Or, is there some fix for the Sync Comment Data webhook that I should be looking into?