v1.6.29
What's Changed
- Performance Optimizations for queryWithRequest Flow by @roncodes in #179
- Feature/performance optimizations by @roncodes in #180
- v1.6.29 ~ fix company resolution within sms verification code by @roncodes in #178
New Features
- Improved API performance with two-layer caching system (Redis + ETag validation) for user and organization data
- Reduced bandwidth usage with automatic HTTP 304 Not Modified responses via new ValidateETag middleware
- Faster page loads with intelligent cache invalidation that updates immediately when data changes
- New UserCacheService class for centralized cache management across the application
- Image resizing support for dynamic image dimensions via URL parameters
- Added
ApiModelCacheclass - Provides intelligent Redis-based caching for API query results with automatic invalidation - Added
HasApiModelCachetrait - Enables models to cache query results with a single method call
Performance Improvements
- Optimized form data syncing to eliminate N+1 query problems, reducing database queries from N to 2 for relationship syncing
- Implemented cache stampede prevention to handle high concurrent load efficiently
- Added cache versioning system for automatic invalidation when data changes
Developer Experience
- Added
X-Cache-Statusheader to API responses for easy cache debugging (HIT/MISS visibility) - Automatic multi-tenant cache key generation for company-scoped data isolation
- Graceful fallback to direct queries when cache is unavailable
Full Changelog: v1.6.28...v1.6.29