HomePhabricator
Diffusion Comm f42a0f28297b

[lib] cache led channels response from neynar

Description

[lib] cache led channels response from neynar

Summary:
we call this client method a lot from keyserver when a farcaster user auto joins communities. we should cache the response from neynar for a minute to avoid making unnecessary calls.

part of: https://linear.app/comm/issue/ENG-9473/app-freezes-when-user-with-a-popular-farcaster-user-joins

Test Plan: checked how many times the neynar API was called and it went down from hundreds to just 5

Reviewers: ashoat

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D13582

Details

Provenance
varunAuthored on Wed, Oct 2, 10:01 PM
Reviewer
ashoat
Differential Revision
D13582: [lib] cache led channels response from neynar
Parents
rCOMM4c5fc7883f77: [lib] Batch BaseAutoJoinCommunityHandler
Branches
Unknown
Tags
Unknown