added usercache

This commit is contained in:
oslomp
2019-01-10 20:34:36 +01:00
parent d1bf9a1b90
commit a2937bad71
2 changed files with 3 additions and 3 deletions

View File

@ -23,8 +23,8 @@ def recache_user_stats():
for user in users:
new_stats = user_stats(user['id'])
cacheloc = 'userstats_{}'.format(user['id'])
caches['default'].delete(cacheloc)
caches['default'].set(cacheloc, new_stats, 48 * 3600)
caches['userstats'].delete(cacheloc)
caches['userstats'].set(cacheloc, new_stats, 48 * 3600)
return new_stats
def to_days(time):