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)
It's not possible to clear the cache of a specific page for a specific user.
rocket_clean_user
clears the whole cache for that user.
rocket_clean_post
clears the specific page cache for both the user cache and logged-out cache. More info