From 4e6df31f081239273c37a6e36de60e1b42581f3a Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 4 Jan 2022 12:29:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91=E7=8E=AF=E5=A2=83=E7=BC=93?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 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)