feat:优化插件重载

This commit is contained in:
jxxghp
2024-04-05 23:20:51 +08:00
parent bd137de042
commit 0e2c4d74d6
4 changed files with 80 additions and 25 deletions

View File

@ -34,7 +34,7 @@ class PluginHelper(metaclass=Singleton):
if self.install_report():
self.systemconfig.set(SystemConfigKey.PluginInstallReport, "1")
@cached(cache=TTLCache(maxsize=300, ttl=1800))
@cached(cache=TTLCache(maxsize=1000, ttl=1800))
def get_plugins(self, repo_url: str) -> Dict[str, dict]:
"""
获取Github所有最新插件列表