add event user_updated

This commit is contained in:
xiaomlove
2024-12-24 22:22:02 +08:00
parent d8ce2bd638
commit b9f5641985
3 changed files with 45 additions and 0 deletions

View File

@@ -1070,6 +1070,10 @@ function clear_user_cache($uid, $passkey = '')
if ($passkey) {
\Nexus\Database\NexusDB::cache_del('user_passkey_'.$passkey.'_content');//announce.php
}
$userInfo = \App\Models\User::query()->find($uid, \App\Models\User::$commonFields);
if ($userInfo) {
fire_event("user_updated", $userInfo);
}
}
function clear_setting_cache()