Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Manage cache validation by comparing version CID #869

Merged
merged 5 commits into from
Aug 18, 2023

Conversation

bfollington
Copy link
Collaborator

@bfollington bfollington commented Aug 11, 2023

Fixes #866

Instead of trying to manually invalidate the cache we can simply store the version (Cid) as a cache key. Assuming my Noosphere fundamentals are correct, we should never observe a change in address books or user profiles without out own sphere version changing - incredibly convenient.

I removed any references to manual cache invalidation since we're using this method in the only two in-memory caches that exist so far.

Copy link
Collaborator

@gordonbrander gordonbrander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment/question

Copy link
Collaborator

@gordonbrander gordonbrander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with one minor suggestion

@bfollington bfollington merged commit ee981d7 into main Aug 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New, preferred petname is "aka" when renaming a peer
2 participants