Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Update cache.ts

Nicolasd162247703e6
diff --git a/apps/api/src/lib/cache.ts b/apps/api/src/lib/cache.ts
index c8cde4763..a60664373 100644
--- a/apps/api/src/lib/cache.ts
+++ b/apps/api/src/lib/cache.ts
@@ -50,7 +50,7 @@ export async function saveEntryToCache(key: string, entry: CacheEntry) {
}
try {
- await cacheRedis.set(key, JSON.stringify(entry), "EX", 3600); // 1 hour in seconds
+ await cacheRedis.set(key, JSON.stringify(entry), "EX", 14400); // 4 hours in seconds
} catch (error) {
logger.warn("Failed to save to cache", { key, error });
}