File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Please use [this](https://docs.gitlab.com/ee/development/changelog.html) documen
77### Fixed
88
99* database: Fixed generating table names from uppercase model names.
10+ * http: Fixed bug that leads to caching invalid responses on the disk.
1011* tzkt: Fixed processing realtime messages with data from multiple levels.
1112
1213## 4.2.5 - 2022-02-21
Original file line number Diff line number Diff line change @@ -188,7 +188,9 @@ async def request(
188188 Check for parameters in cache, if not found, perform retried request and cache result.
189189 """
190190 if self ._config .cache and cache :
191- key = hashlib .sha256 (pickle .dumps ([method , url , kwargs ])).hexdigest ()
191+ # NOTE: Don't forget to include base gateway URL in the cache key
192+ key_data = (method , self ._url , url , kwargs )
193+ key = hashlib .sha256 (pickle .dumps (key_data )).hexdigest ()
192194 try :
193195 return self ._cache [key ]
194196 except KeyError :
You can’t perform that action at this time.
0 commit comments