Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
add version to cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
louist7 committed Mar 21, 2022
1 parent 7f03c3c commit 0969c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ protected function makeRequest($type, $options)
$request = $this->requestFactory->create($type, ['key' => $this->apiKey] + $options);
try {

$cacheKey = $this->urlBuilder->build($request);
$cacheKey = $this->urlBuilder->build($request) . 'v1';

return $this->cache(md5($cacheKey), function() use ($request) {
$rawResponse = $this->makeHttpRequest($request);
Expand Down

0 comments on commit 0969c8f

Please sign in to comment.