about summary refs log tree commit diff
path: root/uploader
diff options
context:
space:
mode:
Diffstat (limited to 'uploader')
-rw-r--r--uploader/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/uploader/__init__.py b/uploader/__init__.py
index cae531b..8119b9e 100644
--- a/uploader/__init__.py
+++ b/uploader/__init__.py
@@ -69,6 +69,11 @@ def create_app():
             # Silently ignore secrets if the file does not exist.
             app.config.from_pyfile(secretsfile)
 
+    app.config["SESSION_CACHELIB"] = FileSystemCache(
+        cache_dir=Path(app.config["SESSION_FILESYSTEM_CACHE_PATH"]).absolute(),
+        threshold=int(app.config["SESSION_FILESYSTEM_CACHE_THRESHOLD"]),
+        default_timeout=int(app.config["SESSION_FILESYSTEM_CACHE_TIMEOUT"]))
+
     setup_logging(app)
 
     # setup jinja2 symbols