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