@@ 337-341 (lines=5) @@ | ||
334 | $response = $this->adapter->end($this->adapter->start($request)); |
|
335 | } |
|
336 | ||
337 | if (($this->cacheMode === self::CACHE_MODE_REFRESH |
|
338 | || $this->cacheMode & self::CACHE_MODE_GET) |
|
339 | && $request->getMethod() === 'GET') { |
|
340 | $this->cache->set($this->getCacheKey($request), $response); |
|
341 | } |
|
342 | ||
343 | return $response; |
|
344 | } |
|
@@ 398-401 (lines=4) @@ | ||
395 | ||
396 | list($this->accessToken, $this->refreshToken, $expires) = Authentication::parseTokenResponse($response); |
|
397 | ||
398 | if ($this->cache === self::CACHE_MODE_REFRESH || $this->cacheMode & self::CACHE_MODE_TOKEN) { |
|
399 | $this->cache->set($this->getCacheKey($request), $response, $expires); |
|
400 | return; |
|
401 | } |
|
402 | } |
|
403 | ||
404 | /** |