Skip to content

Cache fix adding support for filter routes - #254

Open
mr-loop-1 wants to merge 3 commits into
raindropio:masterfrom
mr-loop-1:cache-fix
Open

Cache fix adding support for filter routes#254
mr-loop-1 wants to merge 3 commits into
raindropio:masterfrom
mr-loop-1:cache-fix

Conversation

@mr-loop-1

@mr-loop-1 mr-loop-1 commented Aug 22, 2026

Copy link
Copy Markdown

Fixes #253

Routing is /collectionId for collections, and /0/<page specific> for filters, tags and all-bookmarks page.
The cache mirrors that approach as a key-value object with key collectionid for collections and a key 0 for all these other pages. This makes the stored value against 0 get overwritten at every other page visit.

Instead of caching everything using their own names, I have added the cache for filters using "0:type:name" as the key. Doing it for filters only since they are finite and get decided by api, so not have to be updated from client side.

Appending the key after '0' (esp when combined with parseInt) has the big advantage of reusing existing logic even with the modified keys.

@vercel

vercel Bot commented Aug 22, 2026

Copy link
Copy Markdown

@mr-loop-1 is attempting to deploy a commit to the Raindrop Team on Vercel.

A member of the Team first needs to authorize it.

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.

Cache only works for Collections

1 participant