stats: Increase cache time to 2 hours

This commit is contained in:
Daan Sprenkels
2018-08-16 17:46:32 +02:00
parent 60084cfe04
commit 7b8d012924

View File

@ -13,7 +13,7 @@ from songs.models import Song
def recache_stats():
new_stats = compute_stats()
cache.delete('stats')
cache.set('stats', new_stats)
cache.set('stats', new_stats, 7200)
return new_stats
def compute_stats():