From 1faafac215ed58d9877443ba9db6a212a5d22a69 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 20 Mar 2025 09:57:00 -0500 Subject: Initialise session storage directory. --- uploader/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'uploader') 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 -- cgit v1.2.3