将缓存清除逻辑从 stats.js 路由移至 app.js 全局中间件, 确保 records.js 路由的写操作也能触发缓存清除。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>