function d8cache_user_cancel in Drupal 8 Cache Backport 7
Implements hook_user_cancel().
File
- includes/
user.inc, line 29 - User functions and hooks for the D8 caching system backport.
Code
function d8cache_user_cancel($edit, $account, $method) {
$tags = array();
$tags[] = 'user:' . $account->uid;
$tags[] = 'user_list';
$tags[] = 'search_index:user';
drupal_invalidate_cache_tags($tags);
}