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

Commit

Permalink
Merge pull request #34 from silktide/fix-cache-key
Browse files Browse the repository at this point in the history
Fix caching
  • Loading branch information
andywaite authored Mar 21, 2022
2 parents 7f03c3c + 0969c8f commit 4fc03ca
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 4fc03ca

Please sign in to comment.