remove ttl

This commit is contained in:
Matthias Nannt
2025-05-10 10:50:11 +02:00
parent 623efc28c7
commit 6c16f7f9ed
-5
View File
@@ -69,11 +69,6 @@ CacheHandler.onCreation(async () => {
return {
handlers: [handler],
ttl: {
// We set the stale and the expire age to the same value, because the stale age is determined by the unstable_cache revalidation.
defaultStaleAge: (process.env.REDIS_URL && Number(process.env.REDIS_DEFAULT_TTL)) || 86400,
estimateExpireAge: (staleAge) => staleAge,
},
};
});