- Increased from 300 to 1000 jobs for file pre-caching
- Increased batch size from 3 to 5 jobs per cycle
- Reduced batch delay from 3s to 2s for faster throughput
- Reduced refresh cycle from 5 minutes to 3 minutes
- Now caches all 2242 jobs at startup
- 538+ jobs with files continuously hot
Performance impact:
- Faster file availability across all users
- More comprehensive pre-cached coverage
- Quicker refresh cycles for latest data
- Remove progress meter for faster perceived load times
- Fix async getGraphToken() calls with await
- Implement service principal (app-only) authentication for file caching
- Pre-cache jobs (2242 jobs) at startup via Redis
- Background file caching for first 300 jobs on continuous cycle
- Cache refreshes every 5 minutes to keep data current
- All caches served instantly from Redis for all users/devices
- No user authentication required for backend caching
- App token auto-refreshes every 55 minutes
Changes:
- backend/src/index.ts: Added service principal flow, startup cache warming, background file caching
- frontend/public/index.html: Removed progress bar, fixed getGraphToken() awaits
- .env.example: Added GRAPH_TOKEN documentation