Disable file caching in debug mode.
This commit is contained in:
parent
6b832aba99
commit
c3f4b540d0
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
|||
app.config['DATABASE_URL'] = environ.get("DATABASE_URL", "postgresql://postgres@localhost:5432")
|
||||
app.config['SECRET_KEY'] = environ.get('MASTER_KEY')
|
||||
app.config["SERVER_NAME"] = environ.get("DOMAIN").strip()
|
||||
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 3153600
|
||||
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 0 if app.debug else 3153600
|
||||
app.config["SESSION_COOKIE_NAME"] = "session_" + environ.get("SITE_ID").strip().lower()
|
||||
app.config["VERSION"] = "1.0.0"
|
||||
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue