chore: only warm up cache in prod
This commit is contained in:
parent
802ec4275d
commit
99434aa49a
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue