mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-10 00:22:21 +01:00
added usercache
This commit is contained in:
@ -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):
|
||||
|
||||
Reference in New Issue
Block a user