Feat:支持文件数据库索引,优化访问速度;后台增加系统状态页面

This commit is contained in:
MarSeventh
2025-07-28 22:28:12 +08:00
parent 4d9c618ff7
commit 63d1d1edca
42 changed files with 990 additions and 197 deletions

View File

@@ -1,4 +1,5 @@
import { purgeCFCache } from "../../../utils/purgeCache";
import { addFileToIndex } from "../../../utils/indexManager.js";
export async function onRequest(context) {
// Contents of context object
@@ -33,6 +34,9 @@ export async function onRequest(context) {
// 清除CDN缓存
await purgeCFCache(env, cdnUrl);
// 更新索引
waitUntil(addFileToIndex(context, params.path, value.metadata));
return new Response(info);
}