wpDiscuz 7 API Documentation

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

wpdiscuz_reset_users_cache

This action can be used for deleting the user caches. In general, it should be called by the do_action callback function, so the wpDiscuz can delete the caches.

Changelog

since 7.3.0 version

Parameters

1. $userKey – the key of the user for which the caches should be deleted.
$userKey for registred user: {user_id}_{user_email}_{display_name}
$userKey for guests: 0_{comment_author_email}_{comment_author}

If the variable $userKey is missing it’ll work for all users.

Usage

do_action("wpdiscuz_reset_users_cache", $post_id);

Was this article helpful to you? Yes No