mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-10 19:42:20 +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():
|
def recache_stats():
|
||||||
new_stats = compute_stats()
|
new_stats = compute_stats()
|
||||||
cache.delete('stats')
|
cache.delete('stats')
|
||||||
cache.set('stats', new_stats)
|
cache.set('stats', new_stats, 7200)
|
||||||
return new_stats
|
return new_stats
|
||||||
|
|
||||||
def compute_stats():
|
def compute_stats():
|
||||||
|
|||||||
Reference in New Issue
Block a user