read from config
This commit is contained in:
parent
a041ec2abb
commit
16dfcab6ba
2
app.py
2
app.py
@ -33,7 +33,7 @@ else:
|
||||
app.config.from_object(DevelopmentConfig)
|
||||
|
||||
# Check for Redis availability and configure cache
|
||||
redis_url = app.config.get("REDIS_URL", "redis://localhost:6379/0")
|
||||
redis_url = app.config["REDIS_URL"]
|
||||
cache_config = {"CACHE_TYPE": "redis", "CACHE_REDIS_URL": redis_url}
|
||||
try:
|
||||
# Use a short timeout to prevent hanging
|
||||
|
Loading…
x
Reference in New Issue
Block a user