From edf9e28ed1f26e3ec65187f11bed605959932136 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Fri, 26 Aug 2022 18:58:21 +0200 Subject: [PATCH] Tweak cache size --- app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 622945a..11df9a9 100644 --- a/app/main.py +++ b/app/main.py @@ -70,7 +70,8 @@ from app.utils.emoji import EMOJIS_BY_NAME from app.utils.url import check_url from app.webfinger import get_remote_follow_template -_RESIZED_CACHE: MutableMapping[tuple[str, int], tuple[bytes, str, Any]] = LFUCache(32) +# Only images <1MB will be cached, so 64MB of data will be cached +_RESIZED_CACHE: MutableMapping[tuple[str, int], tuple[bytes, str, Any]] = LFUCache(64) # TODO(ts):