Skip to content

Commit

Permalink
config: reduce Flask PERMANENT_SESSION_LIFETIME
Browse files Browse the repository at this point in the history
* Trying to alleviate Redis memory problems in production.
  • Loading branch information
GraemeWatt committed Aug 5, 2024
1 parent cd10874 commit 770c25e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hepdata/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion hepdata/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
and parsed by ``setup.py``.
"""

__version__ = "0.9.4dev20240731"
__version__ = "0.9.4dev20240805"

0 comments on commit 770c25e

Please sign in to comment.