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

Eloquent Query Cache Laravel Package

byerikas/eloquent-query-cache

Eloquent Query Cache is a Laravel package for caching Eloquent query results, reducing repeated database hits and improving performance in read-heavy apps. It plugs into Laravel’s cache system to store and retrieve query results with minimal code changes.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Adding a low-effort Eloquent query cache to read-heavy Laravel features without building a custom caching layer.
  • Roadmap decisions for dashboards, catalog/search endpoints, reporting views, entitlement checks, and other repeated read paths where database load and p95 latency matter.
  • v1.2.0’s exists support is directly useful for PM-visible flows such as feature gating, “has any results” states, pagination/count checks, and permission/eligibility lookups that previously might have bypassed the query cache.
  • The builder-instance extension points reduce the need for forks or one-off wrappers when teams need custom query-builder behavior alongside caching.
  • Build-vs-buy: worth piloting where the alternative is hand-rolled Redis/model caching; likely not worth replacing if the product needs strict read-after-write consistency or complex multi-tenant cache isolation.

When to Consider This Package

  • Consider it when the application is Laravel/Eloquent-based, has repeated read-heavy queries, and the team can define acceptable TTLs and invalidation rules.
  • Strong fit for internal dashboards, catalog pages, configuration/reference data, and expensive filtered queries where stale reads for seconds/minutes are acceptable.
  • v1.2.0 makes it more relevant when product logic relies on exists() checks or when engineering needs modest builder-creation extensibility.
  • Look elsewhere if the primary need is full HTTP response caching, CDN/page caching, warehouse/BI query acceleration, or real-time consistency.
  • Require engineering validation of cache-key design, invalidation behavior, cache-driver compatibility, multi-tenant isolation, and test coverage before broad adoption.

How to Pitch It (Stakeholders)

  • Executives: a small, Eloquent-native caching package that can reduce database load and latency for read-heavy features with limited integration effort; v1.2.0 broadens coverage for common exists checks and custom builder needs.
  • Engineering: evaluate as a targeted query-result cache rather than a general caching strategy; prioritize invalidation correctness, observability, and tenant isolation, then pilot on low-risk read paths before expanding.
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.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator