Skip to content

Releases: iazaran/smart-cache

1.11.0

04 May 19:46
94170ba

Choose a tag to compare

What's Changed

Full Changelog: 1.10.0...1.11.0

1.10.0

20 Apr 18:27
19cc729

Choose a tag to compare

What's Changed

  • feat: add cache audit and benchmark commands by @iazaran in #41

Full Changelog: 1.9.4...1.10.0

1.9.4

20 Apr 11:52
34dc4fd

Choose a tag to compare

What's Changed

  • ci: add read-only contents permissions to workflow files by @iazaran in #38
  • chore: update league/commonmark to version 2.8.2 by @iazaran in #39
  • chore: downgrade PHPUnit and related testing dependencies by @iazaran in #40

Full Changelog: 1.9.3...1.9.4

1.9.3

14 Apr 17:46
92e472f

Choose a tag to compare

What's Changed

Full Changelog: 1.9.2...1.9.3

1.9.2

18 Mar 16:41
cf7f303

Choose a tag to compare

What's Changed

Full Changelog: 1.9.1...1.9.2

1.9.1

05 Mar 19:02
4b9dba1

Choose a tag to compare

What's Changed

  • Improvements on current features plus docs updates by @iazaran in #35

Full Changelog: 1.9.0...1.9.1

1.9.0

20 Feb 20:01
20f53bd

Choose a tag to compare

What's Changed

  • Fix bugs add deduplication self healing conditional cache seo by @iazaran in #34

Bug Fixes

  • Fixed duplicate key/tag resolution in model cache invalidation
  • Fixed null value sentinel collision with user data

Performance

  • Optimized JSON serialization validation check
  • Added persistent access frequency tracking for adaptive compression
  • Improved cost metadata persistence reliability

Features

  • Write Deduplication (Cache DNA) — skips redundant writes when content is unchanged
  • Conditional Caching (rememberIf) — caches values only when a condition is met
  • Self-Healing Cache — auto-evicts corrupted entries for transparent regeneration

Documentation & SEO

  • Added Open Graph, Twitter Card, and JSON-LD structured data
  • Updated README with badges, comparison table, and feature documentation
  • Updated sitemap

Full Changelog: 1.8.0...1.9.0

1.8.0

08 Feb 19:45
f364802

Choose a tag to compare

What's Changed

✨ New Features

  • Cost-Aware Caching — GreedyDual-inspired scoring that prioritizes expensive-to-compute items in cache
  • getRaw() method — Retrieve raw cached values without deserialization overhead
  • flush() method — Clear all cache entries
  • Null value support — Properly cache and retrieve null values

🔧 Improvements

  • Lazy loading for cache store initialization
  • Atomic increment operations in RateLimiter
  • TTL jitter to prevent cache stampedes
  • Optimized shouldApply() in strategies to avoid double serialization
  • Error logging on decryption failures in EncryptionStrategy
  • Accurate optimization statistics using getRaw() in health checks

🧪 Tests

  • Added tests for null support, flush, getRaw, and cost-aware caching

Full Changelog: 1.7.0...1.8.0

1.7.0

20 Jan 13:52
3ee0760

Choose a tag to compare

What's Changed

SmartCache now implements Laravel's Repository interface, allowing store() to return a SmartCache instance that maintains all optimizations while being fully compatible with Laravel's cache API.

Changes
SmartCache implements Illuminate\Contracts\Cache\Repository
store() returns SmartCache instance with preserved optimizations
Added repository() for raw cache access when needed
Zero breaking changes for existing users
Benefits
✅ Full Laravel Cache drop-in replacement
✅ Works with Repository type hints
✅ All optimizations preserved across drivers
✅ Backward compatible

Full Changelog: 1.6.0...1.7.0

1.6.0

07 Dec 18:32
44b395a

Choose a tag to compare

What's Changed

  • Improvements and new features v1.6 by @iazaran in #28

New Features:
Cache Warming Command (php artisan smart-cache:warm)
Circuit Breaker pattern for cache backend failures
Rate Limiting with stampede protection
Cache Prefixing/Namespacing
TTL Jitter to prevent thundering herd
Encryption Strategy for sensitive data
Cache Statistics Dashboard (web routes)
Async Background Refresh Job

Improvements:
Fixed managed keys persistence with dirty flag (batch saves)
Added orphan chunk cleanup command
Fixed access frequency tracking for adaptive compression
Fixed MemoizedCacheDriver memory leak with LRU eviction
Added size threshold to SmartSerializationStrategy
Improved code quality with global namespace prefixes

Compatibility:
Added PHP 8.4 support
Verified compatibility: PHP 8.1-8.4, Laravel 8-12
Updated CI matrix to test 17 PHP/Laravel combinations

Bug Fixes:
Fixed shouldRefreshProbabilistically() argument count
Fixed command description test assertions
Fixed EncryptionStrategy interface signatures

Full Changelog: 1.5.0...1.6.0