rocket_clean_user()

The rocket_clean_user($user_id, $lang) function can be used to clear the cache of a specific user when you have logged-in user cache option active.

The function takes two parameters:

  • $user_id The user ID.

  • $lang The language code (optional)