From 71f08f01d6ab453424b44c6ecce132998078f79f Mon Sep 17 00:00:00 2001 From: Karl Hudgell Date: Mon, 11 Nov 2024 12:39:39 +0000 Subject: [PATCH] clear cache on restart --- app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app.py b/app.py index 5c8add2..3674424 100644 --- a/app.py +++ b/app.py @@ -21,6 +21,7 @@ app.config['SESSION_COOKIE_SECURE'] = True # Only send cookie over HTTPS app.config['SESSION_COOKIE_HTTPONLY'] = True # Prevent JavaScript access app.config['SESSION_COOKIE_SAMESITE'] = 'Lax' # Adjust for cross-site requests app.config['PERMANENT_SESSION_LIFETIME'] = 60 * 60 * 24 * 365 # 1 year in seconds +cache.clear() # Clears all cache entries @app.before_request def make_session_permanent():