diff --git a/packages/text-to-speech/src/index.ts b/packages/text-to-speech/src/index.ts index 821611ffb..992111ef7 100644 --- a/packages/text-to-speech/src/index.ts +++ b/packages/text-to-speech/src/index.ts @@ -347,12 +347,12 @@ export const textToSpeechStreamingHandler = Sentry.GCPFunction.wrapHttpFunction( } const audioDataString = audioData.toString('hex') - // save audio data to cache for 24 hours for mainly the newsletters + // save audio data to cache for 72 hours for mainly the newsletters await redisClient.set( cacheKey, JSON.stringify({ audioDataString, speechMarks }), { - EX: 3600 * 24, // in seconds + EX: 3600 * 72, // in seconds NX: true, } )