rooteco / tweetscape

the supercharged twitter feed
https://prototype.tweetscape.co
GNU Affero General Public License v3.0
18 stars 2 forks source link

Loader returns stale data after sync #307

Closed nicholaschiang closed 2 years ago

nicholaschiang commented 2 years ago

Imported from @nicholaschiang's original Linear issue TS-98.

After calling our sync APIs, Remix's useFetcher() will automatically revalidate each page's loader data. However, our Redis cache returns stale data (SWR) and thus e.g. the article metadata shown in a list won't be up-to-date with the just-synced data.

I can fix this issue by updating the Redis SWR cache manually in our sync APIs.