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

Delay in removing offline channels from streams API #659

Open
ubershmekel opened this issue Jan 26, 2017 · 1 comment
Open

Delay in removing offline channels from streams API #659

ubershmekel opened this issue Jan 26, 2017 · 1 comment

Comments

@ubershmekel
Copy link

Hi twitch,

I have a webapp that plays the most popular streams for a given game: https://ubershmekel.github.io/twitchn/

The problem is when a stream goes offline - I get the offline event just fine, I then fetch the streams from e.g. https://api.twitch.tv/kraken/streams?client_id=...&game=Heroes%20of%20the%20Storm&pleasedontcache=0.49640725294810895&callback=jQuery112008215349876033768_1485452832426&_=1485452832427

But the offline stream is still listed there. It'll be listed there for 5-10 minutes too. Is that by design? This would require my app to remember which streams recently popped an offline event to manually remove them from the top streams list until the list catches up.

@BarryCarlyon
Copy link
Contributor

Yes it's by design.

Caching of all end points has been discussed at length quite often.

A cache length of 3-5 minutes is about average across all end points.

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

No branches or pull requests

2 participants