From: Guillaume Pellerin Date: Tue, 5 Jul 2022 16:45:12 +0000 (+0200) Subject: iincrease auto publication time range, increase CACHE_TIMEOUT to 72h X-Git-Tag: 2.7.1~16^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3a1470e4003cd68daa52e9f9ebecf10dad1084f8;p=teleforma.git iincrease auto publication time range, increase CACHE_TIMEOUT to 72h --- diff --git a/app/settings.py b/app/settings.py index 26cfc8d3..996ccb06 100644 --- a/app/settings.py +++ b/app/settings.py @@ -302,7 +302,7 @@ CACHES = { } } -CACHE_TIMEOUT = 60*60*24 +CACHE_TIMEOUT = 60*60*72 # Name of cache backend to cache user agents. If it not specified default # cache alias will be used. Set to `None` to disable caching. diff --git a/teleforma/management/commands/teleforma-publish-notify-conferences.py b/teleforma/management/commands/teleforma-publish-notify-conferences.py index 8140c7b7..bf375fe3 100644 --- a/teleforma/management/commands/teleforma-publish-notify-conferences.py +++ b/teleforma/management/commands/teleforma-publish-notify-conferences.py @@ -48,9 +48,9 @@ class Command(BaseCommand): period_name = options['period'] period = Period.objects.get(name=period_name) - now_minus = datetime.datetime.now() - datetime.timedelta(minutes=5) + now_minus = datetime.datetime.now() - datetime.timedelta(minutes=30) print(now_minus) - now_plus = datetime.datetime.now() + datetime.timedelta(minutes=1) + now_plus = datetime.datetime.now() + datetime.timedelta(minutes=5) print(now_plus) conferences = Conference.objects.filter(