This repository has been archived on 2026-03-21. You can view files and clone it, but cannot push or open issues or pull requests.
payfrit-biz/api/auth
John Mizerek dc9db32b58 Add API performance profiling, caching, and query optimizations
- Add queryTimed() wrapper and logPerf() for per-endpoint timing metrics
- Add api_perf_log table flush mechanism with background thread batching
- Add application-scope cache (appCacheGet/Put/Invalidate) with TTL
- Cache businesses/get (5m), addresses/states (24h), menu/items (2m)
- Fix N+1 queries in orders/history, orders/listForKDS (batch fetch)
- Fix correlated subquery in orders/getDetail (LEFT JOIN)
- Combine 4 queries into 1 in portal/stats (subselects)
- Optimize getForBuilder tree building with pre-indexed parent lookup
- Add cache invalidation in update, saveBrandColor, updateHours, saveFromBuilder
- New admin/perf.cfm dashboard (localhost-protected)
- Instrument top 10 endpoints with queryTimed + logPerf

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 20:41:27 -08:00
..
avatar.cfm Add user account APIs and fix Lucee header handling 2026-01-08 20:01:07 -08:00
completeProfile.cfm Fix completeProfile.cfm syntax error 2026-01-26 13:33:40 -08:00
login.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
loginOTP.cfm Add address types endpoint, fix dev mode SMS skip 2026-01-28 00:00:01 -08:00
profile.cfm Add user account APIs and fix Lucee header handling 2026-01-08 20:01:07 -08:00
sendOTP.cfm Add address types endpoint, fix dev mode SMS skip 2026-01-28 00:00:01 -08:00
validateToken.cfm Add API performance profiling, caching, and query optimizations 2026-01-29 20:41:27 -08:00
verifyLoginOTP.cfm Add business name to HUD header, fix portal HUD link 2026-01-19 20:23:52 -08:00
verifyOTP.cfm Add business name to HUD header, fix portal HUD link 2026-01-19 20:23:52 -08:00