WP Discourse comment webhook does not trigger a WP Rocket Cache refresh

Hey @Brandon007, thanks for explaining your issue. As I understand it:

  • The WP Discourse Plugin is updating comment counts correctly.
  • The WP Rocket cache is not being cleared when the comment counts are updated.

I’ve changed the title of your post from “WP Discourse Plugin Not Updating Comment Count” to “WP Discourse comment webhook does not trigger a WP Rocket Cache refresh”.

The basic answer to your issue is that this is expected behavior. The WP Discourse plugin doesn’t have any specific integration with WP Rocket and won’t be adding one in the foreseeable future.

But I can still help you here by adding in an action that fires after the comment sync webhook callback has updated the topic metadata (where the comment count is stored). You could then write your own action callback to do whatever cache clearing you desired. Would that work for your situation?