OAuthPlug: use user cache instead of joining
authorHélène <pleroma-dev@helene.moe>
Tue, 23 Aug 2022 15:15:06 +0000 (17:15 +0200)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Sun, 11 Sep 2022 18:55:55 +0000 (19:55 +0100)
commit1acd38fe7ff61be9256e55e954e546b3340c88ab
tree0ba9159dc0f47715057183c372b19f0bee817185
parent3e2d15c71d3b3b879c46e0da7ab6f79f84de6202
OAuthPlug: use user cache instead of joining

As this plug is called on every request, this should reduce load on the
database by not requiring to select on the users table every single
time, and to instead use the by-ID user cache whenever possible.
lib/pleroma/web/plugs/o_auth_plug.ex