fix: reset TTL globals on cache init failure in except block

This commit is contained in:
PRABHU KIRAN VANDRANKI 2026-04-18 13:27:13 -04:00
parent afa21f9a0b
commit f387fba8da

View file

@ -3145,6 +3145,8 @@ class ProxyConfig:
"Fix your cache configuration and restart the proxy to enable caching."
)
litellm.cache = None
litellm.default_in_memory_ttl = None
litellm.default_redis_ttl = None
elif key == "cache" and value is False:
pass
elif key == "guardrails":