From 770c25e1426941c469328b1053c38d80ebfd983b Mon Sep 17 00:00:00 2001 From: Graeme Watt Date: Mon, 5 Aug 2024 14:34:55 +0100 Subject: [PATCH] config: reduce Flask PERMANENT_SESSION_LIFETIME * Trying to alleviate Redis memory problems in production. --- hepdata/config.py | 2 +- hepdata/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hepdata/config.py b/hepdata/config.py index a5b0e7cc..3083c301 100644 --- a/hepdata/config.py +++ b/hepdata/config.py @@ -111,7 +111,7 @@ def _(x): # Session SESSION_REDIS = "redis://localhost:6379/0" -PERMANENT_SESSION_LIFETIME = timedelta(days=1) +PERMANENT_SESSION_LIFETIME = timedelta(hours=12) # OpenSearch OPENSEARCH_HOST = "localhost" diff --git a/hepdata/version.py b/hepdata/version.py index 02e846e0..fe400e3b 100644 --- a/hepdata/version.py +++ b/hepdata/version.py @@ -28,4 +28,4 @@ and parsed by ``setup.py``. """ -__version__ = "0.9.4dev20240731" +__version__ = "0.9.4dev20240805"