Skip to content

Commit 5894953

Browse files
committed
Update cache key
1 parent 4bbc4a2 commit 5894953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Client/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,6 @@ private function getWeather(array $data): ?Weather
102102
*/
103103
private function getCacheKey($uri): string
104104
{
105-
return str_replace(['{', '}', '(', ')', '/', '\\', '@', ':'], '-', $uri);
105+
return sha1((string)$uri);
106106
}
107107
}

0 commit comments

Comments
 (0)