0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-26 14:38:18 +02:00

Correct cache miss detection

This commit is contained in:
Erik Johnston 2016-03-01 10:59:17 +00:00
parent 903fb34b39
commit ff2d7551c7

View file

@ -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: