- Move `parseEventInfo` and `fetchEventContentHTML` logic into `KaiqiuService`. - Implement differentiated caching strategies: - For finished matches: Cache indefinitely (no TTL) to stop unnecessary HTTP requests since the result is final. - For ongoing matches: Retain the 5-minute TTL to fetch live updates. - Remove unused utility functions from `server.ts`. - Update type imports to include `EventDetail` and `Player`. This change reduces server load by avoiding repeated requests for matches with confirmed results, while ensuring live games remain up-to-date. |
||
|---|---|---|
| __test__ | ||
| .vscode | ||
| assets | ||
| prisma | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| bun-env.d.ts | ||
| bun.lock | ||
| bunfig.toml | ||
| docker-compose.yml | ||
| dockerfile | ||
| package.json | ||
| prisma.config.ts | ||
| README.md | ||
| tsconfig.json | ||