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
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
..
addresses Add API performance profiling, caching, and query optimizations 2026-01-29 20:41:27 -08:00
admin Add API performance profiling, caching, and query optimizations 2026-01-29 20:41:27 -08:00
app Add about.cfm API endpoint for mobile app About screennAdds server-side content for About Payfrit screen allowing content updates without releasing new app versions.nCo-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> 2026-01-28 00:38:58 -08:00
assignments Add business name to HUD header, fix portal HUD link 2026-01-19 20:23:52 -08:00
auth Add API performance profiling, caching, and query optimizations 2026-01-29 20:41:27 -08:00
beacons Add API performance profiling, caching, and query optimizations 2026-01-29 20:41:27 -08:00
businesses Add API performance profiling, caching, and query optimizations 2026-01-29 20:41:27 -08:00
chat App Store Version 2: Multi-menu support, beacon lookup, category scheduling 2026-01-23 19:51:44 -08:00
config Add API performance profiling, caching, and query optimizations 2026-01-29 20:41:27 -08:00
debug Fix task acceptance incorrectly marking orders as delivered 2026-01-16 09:55:45 -08:00
dev Fix seedData.cfm: remove UserEmail column reference 2026-01-26 12:44:53 -08:00
import Add Payfrit Works (WDS) support and task completion flow 2026-01-03 14:52:04 -08:00
menu Add API performance profiling, caching, and query optimizations 2026-01-29 20:41:27 -08:00
orders Add API performance profiling, caching, and query optimizations 2026-01-29 20:41:27 -08:00
portal Add API performance profiling, caching, and query optimizations 2026-01-29 20:41:27 -08:00
ratings Add Manage Menus toolbar button, photo upload, and various improvements 2026-01-28 14:43:41 -08:00
servicepoints Add service points reassign script 2026-01-18 13:56:26 -08:00
setup Fix undefined menuName in saveWizard when using provided menuId 2026-01-28 17:54:16 -08:00
stations Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
stripe Include delivery fee in payment calculation 2026-01-13 11:06:27 -08:00
tasks Add Manage Menus toolbar button, photo upload, and various improvements 2026-01-28 14:43:41 -08:00
users Add team endpoint and chat features for portal 2026-01-11 17:03:55 -08:00
workers Add Payfrit Works (WDS) support and task completion flow 2026-01-03 14:52:04 -08:00
Application.cfm Add API performance profiling, caching, and query optimizations 2026-01-29 20:41:27 -08:00