From b872611462c8078ccf257df04a694f28c1f55054 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 4 Jan 2022 12:30:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=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 958bab11..6bb76edd 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 ? 10 : 120 * 60 // 120 minutes for dev,10 minutes for prod +const cacheTime = BLOG.isProd ? 20 : 120 * 60 // 120 minutes for dev,10 minutes for prod export async function getCacheFromMemory (key, options) { return cache.get(key)