clear cache on restart
This commit is contained in:
parent
873525d9e0
commit
71f08f01d6
1
app.py
1
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_HTTPONLY'] = True # Prevent JavaScript access
|
||||||
app.config['SESSION_COOKIE_SAMESITE'] = 'Lax' # Adjust for cross-site requests
|
app.config['SESSION_COOKIE_SAMESITE'] = 'Lax' # Adjust for cross-site requests
|
||||||
app.config['PERMANENT_SESSION_LIFETIME'] = 60 * 60 * 24 * 365 # 1 year in seconds
|
app.config['PERMANENT_SESSION_LIFETIME'] = 60 * 60 * 24 * 365 # 1 year in seconds
|
||||||
|
cache.clear() # Clears all cache entries
|
||||||
|
|
||||||
@app.before_request
|
@app.before_request
|
||||||
def make_session_permanent():
|
def make_session_permanent():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user