From fdd3b117f1307063ea50d762c8690fcfb0900ab6 Mon Sep 17 00:00:00 2001 From: Luck Date: Thu, 26 Nov 2020 17:24:37 +0000 Subject: [PATCH] Reduce translation cache refresh slightly to 23 hours --- .../me/lucko/luckperms/common/locale/TranslationRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/locale/TranslationRepository.java b/common/src/main/java/me/lucko/luckperms/common/locale/TranslationRepository.java index b6eb18dbb..3f320ca85 100644 --- a/common/src/main/java/me/lucko/luckperms/common/locale/TranslationRepository.java +++ b/common/src/main/java/me/lucko/luckperms/common/locale/TranslationRepository.java @@ -64,7 +64,7 @@ public class TranslationRepository { private static final String TRANSLATIONS_INFO_ENDPOINT = "https://metadata.luckperms.net/data/translations"; private static final String TRANSLATIONS_DOWNLOAD_ENDPOINT = "https://metadata.luckperms.net/translation/"; private static final long MAX_BUNDLE_SIZE = 1048576L; // 1mb - private static final long CACHE_MAX_AGE = TimeUnit.DAYS.toMillis(1); + private static final long CACHE_MAX_AGE = TimeUnit.HOURS.toMillis(23); private final LuckPermsPlugin plugin;