wpDiscuz 7 API Documentation

  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentation
  4. Actions
  5. wpdiscuz_reset_comments_cache
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors


This action can be for deleting the comment caches. In most cases, the do_action should be done to allow the wpDiscuz to delete its own caches.


since 7.3.0 version


$post_id – the ID of the post, where the caches should be updated. If it’s missing it’ll work for all posts.


do_action("wpdiscuz_reset_comments_cache", $post_id);

Was this article helpful to you? Yes 1 No