diff --git a/lib/pleroma/web/web_finger/web_finger.ex b/lib/pleroma/web/web_finger/web_finger.ex index bbd65da61..3cd849de4 100644 --- a/lib/pleroma/web/web_finger/web_finger.ex +++ b/lib/pleroma/web/web_finger/web_finger.ex @@ -60,6 +60,8 @@ def ensure_keys_present(user) do else {:ok, pem} = Salmon.generate_rsa_pem info = Map.put(info, "keys", pem) + Cachex.del(:user_cache, "ap_id:#{user.ap_id}") + Cachex.del(:user_cache, "nickname:#{user.nickname}") Repo.update(Ecto.Changeset.change(user, info: info)) end end