Commit 2c3bfd7f authored by kaniini's avatar kaniini
Browse files

user: delete user_info data in User.invalidate_cache()

parent 10f39584
Pipeline #4218 passed with stages
in 5 minutes and 39 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment