After oauth2 login, visit topic became very slow even failed

Ours discourse site’s version is 2.7.0.beta5.
And we edit outh2 official plugin to our self version.
The access speed of the previous website was relatively fast, but after updating to 2.7.0, it takes about half a minute to access the theme, and it may even fail.
Please Help!!!

It sounds like a dns issue?

If you don’t use oauth does it work as expected? If

Thank you for replying to my message!
Since we have developed themes and plugins ourselves, it will be more troublesome not to enable Oauth authentication. So I may not be able to try.
I think it may not be a problem with DNS. If the user does not log in, the speed of accessing a topic is very fast, but a crash will occur after logging in the user.