gboudreau/nest-api — pull request #40 by pspikings (2014-12-07 11:48:59+00:00)
Title: Fix problem where access tokens are requested everytime script is run

I found that every time my script runs which uses this API the API generated a new access token which caused problems with my phone app always losing its token.

The reason appears to be that use_cache returns false when the cache hasn't yet been loaded so it never loads the cache from the previous attempt :) I think this change fixes it.