diff --git a/lib/cache/memory_cache.js b/lib/cache/memory_cache.js index 973225a0..958bab11 100644 --- a/lib/cache/memory_cache.js +++ b/lib/cache/memory_cache.js @@ -1,7 +1,7 @@ import cache from 'memory-cache' import BLOG from 'blog.config' -const cacheTime = BLOG.isProd ? 60 : 60 * 60 +const cacheTime = BLOG.isProd ? 10 : 120 * 60 // 120 minutes for dev,10 minutes for prod export async function getCacheFromMemory (key, options) { return cache.get(key)