mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
vote: Add metric to see how many prequeued votes are being fetched.
This commit is contained in:
@@ -1707,6 +1707,7 @@ def get_likes(user, items):
|
||||
else:
|
||||
res[(user, item)] = None
|
||||
if keys:
|
||||
g.stats.simple_event("vote.prequeued.fetch", delta=len(keys))
|
||||
r = g.cache.get_multi(keys.keys())
|
||||
for key, v in r.iteritems():
|
||||
res[keys[key]] = (True if v == '1'
|
||||
|
||||
Reference in New Issue
Block a user