From 7b8d0129245f4690d6caeea063738f624397ecff Mon Sep 17 00:00:00 2001 From: Daan Sprenkels Date: Thu, 16 Aug 2018 17:46:32 +0200 Subject: [PATCH] stats: Increase cache time to 2 hours --- marietje/stats/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marietje/stats/utils.py b/marietje/stats/utils.py index d52710a..750bff3 100644 --- a/marietje/stats/utils.py +++ b/marietje/stats/utils.py @@ -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():