mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
fix: reset TTL globals on cache init failure in except block
This commit is contained in:
parent
afa21f9a0b
commit
f387fba8da
1 changed files with 2 additions and 0 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue