···810810811811 if host.ID != u.PDS && u.PDS != 0 {
812812 log.Warnw("received event for repo from different pds than expected", "repo", evt.Repo, "expPds", u.PDS, "gotPds", host.Host)
813813+ // Flush any cached DID documents for this user
814814+ bgs.didr.FlushCacheFor(env.RepoHandle.Did)
815815+813816 subj, err := bgs.createExternalUser(ctx, evt.Repo)
814817 if err != nil {
815818 return err