[Proposal] Built-in Automatic Query Result Caching for Eloquent #56162
Unanswered
yousefkadah
asked this question in
Ideas
Replies: 2 comments
-
This existed in Eloquent many versions back, and was removed, so I'm guessing it likely won't be re-added. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Seems like something that could just as easily be added via a package, no? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Automatic Eloquent Query Caching Proposal
Problem Statement
Currently, developers need to implement query caching using:
This requires:
Proposed Solution
Native Eloquent query caching with:
Key Benefits
Automatic Cache Keys - Hashes queries including:
Intelligent Invalidation - Automatic via:
First-party Testing Support:
Implementation Approach
HasQueryCaching
traitWhy Core Integration?
Community Impact
Would replace functionality currently provided by:
spatie/laravel-query-builder
watson/rememberable
Next Steps
I'm prepared to:
Would this be a welcome addition to Eloquent? I'm happy to adapt the approach based on maintainer feedback.
Beta Was this translation helpful? Give feedback.
All reactions