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

feat: cache by metadigest #3

Conversation

vibern0
Copy link

@vibern0 vibern0 commented Oct 31, 2024

as reported, profile data was not being updated. This is because cache was saved by avatar id, and if there was cache, it would return instead of update. This solves that problem, and instead indexes by metadigest, which reduces computation, since we only need to compute the cid once, to query it.

it also fixes group profile creation since UpdateMetadataDigest event is emitted before the RegisterGroup event in case the user sets profile data already.

@vibern0 vibern0 merged commit 4d61d7a into master Oct 31, 2024
@vibern0 vibern0 deleted the bernardovieira/gw-1010-profile-data-doesnt-update-after-changes branch November 20, 2024 07:44
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.

2 participants