Reduce translation cache refresh slightly to 23 hours

This commit is contained in:
Luck 2020-11-26 17:24:37 +00:00
parent 8a38c5f4b7
commit fdd3b117f1
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -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;