Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with authentication issues with Stash
Per PSR-6: > Hit - A cache hit occurs when a Calling Library requests an Item by key and a matching value is found for that key, and that value has not expired, and the value is not invalid for some other reason. Calling Libraries SHOULD make sure to verify isHit() on all get() calls. The $cacheItem response is never validated, and in the case of the Stash library the response contains the expired data (presumably to provide access to the previous cache). This should fix a recurring issue with authentication when using Stash for storing tokens; which were never being regenerated properly. There is one open issue googleapis/google-api-php-client#1075, plus several other closed issues which appear to have misdiagnosed the issue.
- Loading branch information