Releases: delgont/core
Releases · delgont/core
Release v1.11.0 – Enhanced Caching & Paginated Key Management
📦 Delgont Core v1.11.0 — Release Note.
✨ Added
cachedForever()method for permanent caching of data until explicitly cleared.paginatedCacheSuffix()helper for consistent cache key suffix generation in paginated data.clearPaginatedCache() andclearCacheUpToLastPage()methods to easily clear paginated cache entries.
🔧 Changed
- HandlesModelCaching
- Refined
cached()method to ensure expiry is consistently treated as minutes (using now()->addMinutes()). - Centralized cache write logic through
writeToCache()for consistency and backward compatibility.
- Refined
- ModelCacheKeys
- Improved cache clearing logic with standardized suffix handling.
- Ensured consistent naming and key generation for paginated cache entries.
🛠️ Fixed
- Prevented accidental interpretation of $cacheExpiry as seconds when passed as an integer.
- Resolved variable naming inconsistencies in pagination helpers ($perPage vs $perpage).
🚀 Upgrade Notes
- If you previously relied on $cacheExpiry being a string (e.g. "1440"), casting now ensures backward compatibility.
- All cache expiry values are now consistently interpreted as minutes, not seconds.
- Consumers should update any custom cache-clearing logic to use the new
paginatedCacheSuffix()helper for consistency.
v1.10.0
Enhanced Settings Management via Option Model
We’ve added powerful methods to the Option model to make managing application settings and configuration even easier and more structured.