daika7ana/laravel-model-cache
Laravel Model Cache adds transparent query-result caching to Eloquent models, automatically invalidating cached data when models are created, updated, or deleted. Simple trait-based setup with configurable TTLs helps cut database load without changing your existing model code.
afterCommit() lifecycle. This fits typical Laravel cache-invalidation patterns, but the v1.0.1 fix reveals tight coupling to Laravel’s transaction manager and cache internals. TPM should confirm whether the package is intended for application-level cache invalidation only or for broader multi-tenant / distributed cache scenarios.afterCommit() callbacks and transaction managers. TPM should treat transaction/cache interaction as a high-risk area and require regression coverage.afterCommit() registration in all Laravel-supported transaction managers?DB::transaction() retries?RefreshDatabase or similar traits must be run before production rollout. Confirm cache backends (Redis, Memcached, database, array) behave consistently.afterCommit() callback registration, memory exhaustion, delayed or duplicated cache flushes, and inconsistent cache state after transaction rollback. The fix addresses the recursion, but TPM should require monitoring for memory spikes and cache-invalidation lag during transaction-heavy periods.afterCommit() semantics. Provide a short internal note on the v1.0.1 bug, how to test cache flushes inside transactions, and when to avoid manual cache flushing inside transaction blocks.How can I help you explore Laravel packages today?