root: clear cache on debug startup

This commit is contained in:
Jens Langhammer 2020-05-20 16:13:48 +02:00
parent b3c54308b7
commit fab9f1cb1b
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ import sys
import structlog
from celery.schedules import crontab
from django.core.cache import cache
from sentry_sdk import init as sentry_init
from sentry_sdk.integrations.celery import CeleryIntegration
from sentry_sdk.integrations.django import DjangoIntegration
@ -393,5 +394,6 @@ if DEBUG:
SESSION_COOKIE_SAMESITE = None
INSTALLED_APPS.append("debug_toolbar")
MIDDLEWARE.append("debug_toolbar.middleware.DebugToolbarMiddleware")
cache.clear()
INSTALLED_APPS.append("passbook.core.apps.PassbookCoreConfig")