perf: 优化插件更新缓存策略

This commit is contained in:
Soulter
2023-05-14 18:16:12 +08:00
parent 0d99aa81e6
commit bd11541678
+1 -2
View File
@@ -123,9 +123,8 @@ class Command:
mm = os.system(f"pip3 install {line.strip()}")
if mm != 0:
return False, "插件依赖安装失败,需要您手动pip安装对应插件的依赖。", "plugin"
# 加载没缓存的插件
ok, err = self.plugin_reload(cached_plugins)
ok, err = self.plugin_reload(cached_plugins, target=d)
if ok:
return True, "插件拉取并载入成功~", "plugin"
else: