Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear DID cache entry on PDS after identity.updateHandle #3393

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

char
Copy link

@char char commented Jan 18, 2025

On a self-hosted PDS, updating an account's handle via com.atproto.identity.updateHandle won't change the reported handle value in com.atproto.repo.describeRepo, since the did cache still has stale data.

To solve this, we just clear the cache after the updateHandle endpoint gets hit.


what do we think chat

@char char changed the title Clear DID cache for did:plc: after identity.updateHandle Clear DID cache for after identity.updateHandle Jan 18, 2025
@char char force-pushed the char/update-handle-bust-cache branch from 439062c to 9b51a5c Compare January 18, 2025 06:11
On a self-hosted PDS, updating an account's handle via
`com.atproto.identity.updateHandle` won't change the reported `handle`
value in `com.atproto.repo.describeRepo`, since the did cache still has
stale data.

To solve this, we just clear the cache after the updateHandle endpoint
gets hit.
@char char force-pushed the char/update-handle-bust-cache branch from 9b51a5c to 64a006b Compare January 18, 2025 06:15
@char char changed the title Clear DID cache for after identity.updateHandle Clear DID cache entry on PDS after identity.updateHandle Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant