From 6e53e75b0c5811cb2a62edb4f317a753a0d287cc Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Fri, 7 Jan 2022 22:08:13 +0800 Subject: [PATCH] Update memory_cache.js --- lib/cache/memory_cache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cache/memory_cache.js b/lib/cache/memory_cache.js index 6bb76edd..6965dbd7 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 ? 20 : 120 * 60 // 120 minutes for dev,10 minutes for prod +const cacheTime = BLOG.isProd ? 10 * 60 : 120 * 60 // 120 minutes for dev,10 minutes for prod export async function getCacheFromMemory (key, options) { return cache.get(key)