In lib/senders/oauth_client_info.js we currently have some caching logic wrapped around a call to oauthdb.getClientInfo, to avoid hitting the oauth-server db every time we want to look up basic oauth client metadata.
As seen in mozilla/fxa-auth-server#2985, we're growing additional calls to oauthdb.getClientInfo that would also benefit from this caching, but don't get it.
Let's move the caching logic down into oauthdb.getClientInfo or some low-level wrapper around it, so it can be shared by more components.
┆Issue is synchronized with this Jira Task
┆Issue Number: FXA-641
In
lib/senders/oauth_client_info.jswe currently have some caching logic wrapped around a call tooauthdb.getClientInfo, to avoid hitting the oauth-server db every time we want to look up basic oauth client metadata.As seen in mozilla/fxa-auth-server#2985, we're growing additional calls to
oauthdb.getClientInfothat would also benefit from this caching, but don't get it.Let's move the caching logic down into
oauthdb.getClientInfoor some low-level wrapper around it, so it can be shared by more components.┆Issue is synchronized with this Jira Task
┆Issue Number: FXA-641