From 24efc4f1ec7c8f537653cc7da16fcafe480d94d0 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 10 Dec 2023 02:41:17 -0800 Subject: feat(manga): lighter rate-limits --- src/lib/List/Manga/MangaListTemplate.svelte | 2 +- src/routes/settings/+page.svelte | 4 ++-- src/stores/settings.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/lib/List/Manga/MangaListTemplate.svelte b/src/lib/List/Manga/MangaListTemplate.svelte index c6ea8b7d..54009e50 100644 --- a/src/lib/List/Manga/MangaListTemplate.svelte +++ b/src/lib/List/Manga/MangaListTemplate.svelte @@ -50,7 +50,7 @@ if ( (currentDate.getTime() - $lastPruneTimes.chapters) / 1000 / 60 > - $settings.cacheMangaMinutes + Math.max($settings.cacheMangaMinutes, 5) ) { const unresolved = await chapterDatabase.chapters.where('chapters').equals(-1).toArray(); const ids = unresolved.map((m) => m.id); diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte index cfedfd73..7f91d929 100644 --- a/src/routes/settings/+page.svelte +++ b/src/routes/settings/+page.svelte @@ -243,9 +243,9 @@ minutes diff --git a/src/stores/settings.ts b/src/stores/settings.ts index ca081058..c105fbb5 100644 --- a/src/stores/settings.ts +++ b/src/stores/settings.ts @@ -56,7 +56,7 @@ const defaultSettings: Settings = { guessMethod: 'median', // Cache - cacheMangaMinutes: 60, + cacheMangaMinutes: 120, cacheMinutes: 30 }; -- cgit v1.2.3