Cache the stats page

This commit is contained in:
Daan Sprenkels
2018-08-16 17:20:50 +02:00
parent 3f22056157
commit 60084cfe04
5 changed files with 135 additions and 53 deletions
@@ -0,0 +1,9 @@
from django.core.management.base import BaseCommand
from stats.utils import recache_stats
class Command(BaseCommand):
help = 'Update the statistics cache'
def handle(self, *args, **options):
recache_stats()