mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-10 09:42:20 +01:00
Cache the stats page
This commit is contained in:
9
marietje/stats/management/commands/recache_stats.py
Normal file
9
marietje/stats/management/commands/recache_stats.py
Normal 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()
|
||||
Reference in New Issue
Block a user