this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Extend BGS identity cache duration to something reasonable and bust c… (#400)

…ache for a DID when getting an event from another PDS for a given repo

authored by

Jaz and committed by
GitHub
d4dfa2e3 7fe27191

+4 -1
+3
bgs/bgs.go
··· 810 810 811 811 if host.ID != u.PDS && u.PDS != 0 { 812 812 log.Warnw("received event for repo from different pds than expected", "repo", evt.Repo, "expPds", u.PDS, "gotPds", host.Host) 813 + // Flush any cached DID documents for this user 814 + bgs.didr.FlushCacheFor(env.RepoHandle.Did) 815 + 813 816 subj, err := bgs.createExternalUser(ctx, evt.Repo) 814 817 if err != nil { 815 818 return err
+1 -1
cmd/bigsky/main.go
··· 256 256 } 257 257 mr.AddHandler("web", &webr) 258 258 259 - cachedidr := plc.NewCachingDidResolver(mr, time.Minute*5, 500_000) 259 + cachedidr := plc.NewCachingDidResolver(mr, time.Hour*24, 500_000) 260 260 261 261 kmgr := indexer.NewKeyManager(cachedidr, nil) 262 262