foreign-sapphire•2w ago
What is the TTL for Voice Caching?
We're using elevenlabs as primary voice provider, but when we change the synthesis settings, is not reflecting. We figure out that this is a caching. Which is not a problem at all.
On other hands, we would like to know
1. What is the TTL for cached voices?
2. Is there any way to enfore caching expiration?
PS: We don't want to disable the caching at all
2 Replies
foreign-sapphireOP•2d ago
@Vapi Support Bot
@Vapi ?
Thanks for the question — here’s how the voice caching works:
TTL for cached voices:
There’s no fixed TTL. ElevenLabs audio is cached on our side without an expiration and is only removed when our Redis cache evicts it using LRU, or when it’s manually cleared internally. Enforcing expiration:
There isn’t a way to programmatically expire cached voices through the API. Cache management happens entirely on our backend. Best workaround:
Modify any synthesis parameter (stability, style, voice settings, etc.). This generates a new cache key and forces fresh synthesis, which is the most reliable way to bypass the existing cache without disabling caching.
There’s no fixed TTL. ElevenLabs audio is cached on our side without an expiration and is only removed when our Redis cache evicts it using LRU, or when it’s manually cleared internally. Enforcing expiration:
There isn’t a way to programmatically expire cached voices through the API. Cache management happens entirely on our backend. Best workaround:
Modify any synthesis parameter (stability, style, voice settings, etc.). This generates a new cache key and forces fresh synthesis, which is the most reliable way to bypass the existing cache without disabling caching.