From 3a1470e4003cd68daa52e9f9ebecf10dad1084f8 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 5 Jul 2022 18:45:12 +0200 Subject: [PATCH] iincrease auto publication time range, increase CACHE_TIMEOUT to 72h --- app/settings.py | 2 +- .../commands/teleforma-publish-notify-conferences.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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( -- 2.39.5