feat: 同步配置前, 预处理订阅, 防止同时请求过多

This commit is contained in:
xream
2024-02-14 19:51:44 +08:00
parent 1b948cdf52
commit f85e360ea8
4 changed files with 122 additions and 15 deletions

View File

@@ -74,6 +74,7 @@ export default async function download(rawUrl, ua, timeout) {
// try to find in app cache
const cached = resourceCache.get(id);
if (!$arguments?.noCache && cached) {
$.info(`使用缓存: ${url}`);
result = cached;
} else {
$.info(