I have a script that runs every few seconds and grabs the most recent follower - a limit of 1. It all works well until at a point when a new user follows. The first few requests will return the true most recent follower, however, the third or fourth request will then return the previous most recent follower before going back to the true most recent follower. It then just becomes a constant game of back and forth.
Any idea what gives? Could it be a caching issue on the API call?
$request = $client->get('https://api.twitch.tv/kraken/channels/jonliney/follows?limit=1');
// returns JSON array - this JSON array constantly changes between user's if a new user follows or unfollows