user: delete user_info data in User.invalidate_cache()

This commit is contained in:
William Pitcock 2018-11-01 07:52:58 +00:00
parent 10f3958468
commit 2c3bfd7f76

View file

@ -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