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