user: delete user_info data in User.invalidate_cache()
[akkoma] / lib / pleroma / user.ex
index bb5b91c6136c2440e3fb2bf8e393a472fb411e20..f724f8a5b9a9feb6e15d06cb5f6c2bef8b6ef00e 100644 (file)
@@ -295,6 +295,7 @@ defmodule Pleroma.User 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