chore: only warm up cache in prod

This commit is contained in:
WebStreamr 2025-06-06 12:16:29 +00:00
parent 802ec4275d
commit 99434aa49a
No known key found for this signature in database

View file

@ -103,4 +103,7 @@ const cacheWarmup = async () => {
logger.info(`warmed up cache with ${movieIds.length} movies`, ctx);
setTimeout(cacheWarmup, 3600000); // 1 hour
};
setTimeout(cacheWarmup, 10000);
if (envIsProd()) {
setTimeout(cacheWarmup, 10000);
}