Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Model Caching Laravel Package

ghostcompiler/laravel-model-caching

Automatically caches Eloquent model queries and invalidates them whenever a model is created, updated, or deleted, so repeated database reads are served from cache. A drop-in trait for Laravel models with minimal configuration and no code changes required.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature/roadmap scoping: Informs whether to invest in a read-performance workstream (automatic Eloquent query caching) versus other scalability levers like read replicas, indexing, or query refactoring.
  • Build vs. buy: This package replaces a custom cache layer + invalidation logic you would otherwise build and maintain. The v1.0.0 tag is the key signal here — it implies a stable, semver-governed public API you can adopt without pinning to a moving target.
  • Cost and capacity planning: For read-heavy models (catalogs, dashboards, CMS content, reference data), model-level caching can cut database load and infrastructure spend, which supports capacity forecasts and cloud-cost reduction goals.
  • Use-case fit: Best suited to high-read/low-write models, repeated identical queries, and multi-tenant apps where cache keys can be scoped per tenant. Poor fit for write-heavy or strict real-time consistency domains.
  • Upgrade cadence: Treating the 1.0.0 milestone as the "adoptable" baseline lets you schedule this as a normal dependency rather than an experimental spike. Confirm the changelog for any 0.x → 1.0 breaking changes before committing a release slot.

When to Consider This Package

  • You have an Eloquent-heavy Laravel codebase with read-heavy endpoints and measurable database pressure.
  • You already run a shared cache store (Redis/Memcached) and want automatic invalidation wired to model save/delete events instead of manual cache-busting.
  • You want a low-integration-effort win — typically a trait plus config — rather than a service-layer rewrite.
  • Look elsewhere when: models are write-heavy, you require strict read-after-write consistency, queries span complex joins/aggregates whose invalidation this package cannot reliably track, or you need cross-model invalidation guarantees.
  • Caveat on this release: the v1.0.0 notes contain only a changelog link — no documented breaking changes, migration notes, benchmarks, or invalidation semantics. Before adoption, validate the 0.x→1.0 diff, confirm the maintained/supported status of the package, and prototype against your slowest queries with correctness tests around invalidation.

How to Pitch It (Stakeholders)

  • Executives: A small, well-scoped Laravel package that cuts database load and improves response times on our read-heavy surfaces, with a 1.0.0 stable API that lowers integration and upgrade risk. Expect modest engineering effort and a measurable reduction in DB cost/latency.
  • Engineering: Drop-in model caching with event-driven invalidation, configurable store and TTL. The 1.0.0 tag commits to semver, so we can adopt it as a normal dependency. Before rollout we need to (1) review the 0.x→1.0 diff for breaking changes, (2) validate invalidation correctness with tests on our hottest models, and (3) benchmark to confirm gains on our actual query patterns.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo