mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-24 02:25:45 +03:00
Correct cache miss detection
This commit is contained in:
parent
903fb34b39
commit
ff2d7551c7
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ class ExpiringCache(object):
|
|||
try:
|
||||
entry = self._cache[key]
|
||||
cache_counter.inc_hits(self._cache_name)
|
||||
finally:
|
||||
except KeyError:
|
||||
cache_counter.inc_misses(self._cache_name)
|
||||
|
||||
if self._reset_expiry_on_get:
|
||||
|
|
Loading…
Reference in a new issue