user: delete user_info data in User.invalidate_cache()
This commit is contained in:
parent
10f3958468
commit
2c3bfd7f76
1 changed files with 1 additions and 0 deletions
|
@ -295,6 +295,7 @@ def update_and_set_cache(changeset) do
|
|||
def invalidate_cache(user) do
|
||||
Cachex.del(:user_cache, "ap_id:#{user.ap_id}")
|
||||
Cachex.del(:user_cache, "nickname:#{user.nickname}")
|
||||
Cachex.del(:user_cache, "user_info:#{user.id}")
|
||||
end
|
||||
|
||||
def get_cached_by_ap_id(ap_id) do
|
||||
|
|
Loading…
Reference in a new issue