From f2eddd7f7d32d9b2ee5e98cd2c12501e81273199 Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Fri, 21 Nov 2025 05:00:19 -0800 Subject: [PATCH] Changed threshold to 100 entries before cleanup --- javascript/gallery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/gallery.js b/javascript/gallery.js index 5fd20e58a..ffe2697ec 100644 --- a/javascript/gallery.js +++ b/javascript/gallery.js @@ -564,7 +564,7 @@ async function thumbCacheCleanup() { .then(keys => keys.length) .catch(() => 0); - if (idbSize < thumbHashes.size + 200) { + if (idbSize < thumbHashes.size + 100) { // Don't run when there aren't many excess entries idbIsCleaning = false; return;