1. 首页
  2. WordPress 函数手册

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/