fix: dont recheck healthy state after value is retrieved from client cache (#32099)
This commit is contained in:
parent
fe5be4b3d1
commit
f70c32c23e
1 changed files with 1 additions and 1 deletions
|
|
@ -500,7 +500,7 @@ class ClientCache:
|
|||
key = self.redis.make_key(key, shared=shared)
|
||||
try:
|
||||
val = self.cache[key]
|
||||
if time.monotonic() < val.expiry and self.healthy:
|
||||
if time.monotonic() < val.expiry:
|
||||
self.hits += 1
|
||||
return val.value
|
||||
except KeyError:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue