cusac / cusac/mbt.guide

Cache unprocessed videos

Open
#108 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Since the unprocessed videos needs to make many youtube api requests in order to find enough unprocessed videos to show, we need to come up with a way to cache the results. This will prevent us from quickly exceeding the youtube api daily quota and will prevent the long loading times for unprocessed videos.

The list can easily be cached in the redux store, the tricky part will be deciding how/when to invalidate the cache. A good approach might be just to fetch the videos from the cached list and check if any have segments. If they do, remove them from the list and resume the search to fill the missing slots.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.