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

**URL:** <https://meta.discourse.org/t/wp-discourse-comment-webhook-does-not-trigger-a-wp-rocket-cache-refresh/236700>\
**Category:** WordPress\
**Tags:** wordpress\
**Created:** [August 20, 2022, 12:01pm UTC](https://meta.discourse.org/t/wp-discourse-comment-webhook-does-not-trigger-a-wp-rocket-cache-refresh/236700 "2022-08-20T12:01:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [August 22, 2022, 7:51am UTC](https://meta.discourse.org/t/wp-discourse-comment-webhook-does-not-trigger-a-wp-rocket-cache-refresh/236700/3 "2022-08-22T07:51:47Z")

</div>

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

- The [WP Discourse](https://github.com/discourse/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](https://github.com/discourse/wp-discourse) Plugin Not Updating Comment Count” to “[WP Discourse](https://github.com/discourse/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](https://github.com/discourse/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?

---

_[View the full topic](https://meta.discourse.org/t/wp-discourse-comment-webhook-does-not-trigger-a-wp-rocket-cache-refresh/236700)._
