From 10fb61bd57f58c46699d196b443b79f2f1582f48 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 2 Nov 2023 11:20:11 +0800 Subject: [PATCH] fix repo cache --- app/helper/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helper/plugin.py b/app/helper/plugin.py index 26fc1586..bbb0d028 100644 --- a/app/helper/plugin.py +++ b/app/helper/plugin.py @@ -16,7 +16,7 @@ class PluginHelper(metaclass=Singleton): 插件市场管理,下载安装插件到本地 """ - @cached(cache=TTLCache(maxsize=1, ttl=1800)) + @cached(cache=TTLCache(maxsize=10, ttl=1800)) def get_plugins(self, repo_url: str) -> Dict[str, dict]: """ 获取Github所有最新插件列表