Comments (3)
Hi @BulgarianHealer,
Yes, caching is something I was considering to add. As you also mentioned, there are quite a few ways to do that, and to be honest, I do not have a clear vision (yet) on how to implement this feature either.
What makes it difficult is cache revalidation, that should work hand in hand with other (possible) cache implementations of the apps that use both Laravel Orion and third-party caching packages. One thing that comes in mind is to have its own implementation of caching and bridges for those packages (e.g. LaravelModelCachingBridge
) to ensure proper revalidation, should an app require both implementations.
from laravel-orion.
There's an awesome package that does this exactly for you;
https://github.com/GeneaLabs/laravel-model-caching
On topic: I don't think a cache should be enabled by default
from laravel-orion.
There's an awesome package that does this exactly for you;
https://github.com/GeneaLabs/laravel-model-cachingOn topic: I don't think a cache should be enabled by default
I haven't seen this package I will give it a try to see if is compatible with this package.
Edit: This package will not work with laravel-orion(custom query build)
On the topic:
Well let's say that there is an app that is live, but there is some little bug, so you turn on debug mode, and the cache will be disabled. If the app is set local env, not to the prod. it will be disabled.
The other thing is that when we/you/they add more packages it's getting hard and hard to upgrade everything to the latest version of laravel. I have seen apps with more than 60 packages and some of them were added as a missing feature of some packages(that app is using). And after some time maybe the developer will stop to support it and you know what is happening.
So I think maybe will be better for this package to have a standalone cacheable trait.
from laravel-orion.
Related Issues (20)
- Error on viewAny policy in relation controller routes
- Please add an ability to use Alova.js instead Axios for Orion.makeHttpClientUsing(...) HOT 1
- Modular (non-standard) app architectures
- Case-insensitive does not work with JSON field type HOT 1
- filterableBy nested relation: Call to undefined method HOT 1
- Using 'include' on PATCH/update requests give "1054 Unknown column 'include' in 'field list' " HOT 1
- How can i set default get record order by id descending order? HOT 1
- Call to a member function requestedRelations() on null HOT 1
- GET request pending after STORE operation on IOS ONLY HOT 1
- Sorting included relationships HOT 1
- Regression: impossible to call sub-relations with the QueryBuilder HOT 4
- Can't use 'max_nested_depth' => 1 with in Request HOT 4
- Unable to Publish Vendor Config in Laravel-Orion HOT 1
- Including more content in the OpenAPI 3 specs HOT 1
- Customize Database Driver HOT 1
- artisan orion:specs does not work HOT 2
- Search endpoint not present HOT 6
- Documentation error: Access level to [Controller]::filterableBy() must be public (as in class Orion\Http\Controllers\BaseController) HOT 1
- Custom Resource not working HOT 2
- Meilisearch Compatibility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-orion.