From 14039975c2fa7706d326f8571ae43b0ebe0af6c9 Mon Sep 17 00:00:00 2001 From: Senad Uka Date: Wed, 21 Oct 2020 10:49:22 +0200 Subject: [PATCH] Modify time to live to 6 hours --- app/helpers/fetchWrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/fetchWrapper.js b/app/helpers/fetchWrapper.js index 91bb58a..1252d5d 100644 --- a/app/helpers/fetchWrapper.js +++ b/app/helpers/fetchWrapper.js @@ -23,7 +23,7 @@ const fetchCache = new FetchCache({ maximalItemCount: 10000, // When should the cache evict responses when its full? evictExceedingItemsBy: 'age', // Valid values: 'lru' or 'age' - defaultTTL: 10 * 60 * 1000 // 10 minutes + defaultTTL: 6 * 60 * 60 * 1000 // 6 hours // ...see https://github.com/sozialhelden/hamster-cache for all possible options }, });