# 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:** 12

<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: [September 8, 2022, 12:46pm UTC](https://meta.discourse.org/t/wp-discourse-comment-webhook-does-not-trigger-a-wp-rocket-cache-refresh/236700/12 "2022-09-08T12:46:06Z")

</div>

Just a note that the action I’ve mentioned above will be added in `2.4.6` which is currently being prepared for release.

> [@angus](#):
>
> 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

The action will receive the ids of the Wordpress posts that have been updated by the webhook as an argument, i.e.

```plaintext
do_action( 'wpdc_after_webhook_post_update', $post_ids );

```

See further

[https://github.com/discourse/wp-discourse/pull/459](https://github.com/discourse/wp-discourse/pull/459)

---

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