]> git.parisson.com Git - teleforma.git/commitdiff
iincrease auto publication time range, increase CACHE_TIMEOUT to 72h
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 5 Jul 2022 16:45:12 +0000 (18:45 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 5 Jul 2022 16:45:12 +0000 (18:45 +0200)
app/settings.py
teleforma/management/commands/teleforma-publish-notify-conferences.py

index 26cfc8d3c25b3c0d8e5bfec9b169cd3635af5ad0..996ccb0668893e6b83638cb043da272a1ac1a6b5 100644 (file)
@@ -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.
index 8140c7b73dfa63404b35ccd0293aaab167ccf048..bf375fe39853e88331df6d5914757dd3999849f1 100644 (file)
@@ -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(