Cache the stats page

This commit is contained in:
Daan Sprenkels
2018-08-16 16:58:19 +02:00
parent 3f22056157
commit 60084cfe04
5 changed files with 135 additions and 53 deletions

View File

@ -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()