cache with table query
I want to create cache for table builder, but the
->query()
expect query builder, not eloquent, how can I create cache
User::get()
inside cache is working, but table expect query..Solution:Jump to solution
I don't think you can
till eloquent call the
get()
it won't execute the query and then nothing to cache...4 Replies
Solution
I don't think you can
till eloquent call the
get()
it won't execute the query and then nothing to cacheYes correct, do you know an alternative ways or does it need here, Because I want to display data that will change 1-2 times a year only that's why I try cache for performance
do you have much traffic to that page?
I won't worry about that and keep it as it
I think it is hard to cache it since filament will also add wheres for filters and sorting and searching
OK, then I'll leave it as it is.. thanks for heads up