clean_user_cache()
clean_user_cache( WP_User|int $user )
清除所有用户缓存
Clean all user caches
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$user | (WP_User | int) | 必需 | 要从缓存中清除的用户对象或ID |
返回(Return)
无返回值
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.4.0 | wp-includes/user.php:1366 | 10 | 4 |
clean_user_cache() 为WP2原创文章,链接:https://www.wp2.cn/functions/clean_user_cache-2/