Open drmax24 opened 6 years ago
In my application I am utilizing https://github.com/GeneaLabs/laravel-model-caching/. It covers majority of my caching needs. So far the only downside (and it's been noted) is that it currently does not support belongsToMany caching when being lazy-loaded.
It is not clear for me how can I cache output result of a complex query. Let's say I query car accessories together with related cars and other related stuff:
If I cache it like this then all relations won't be cached. Because the result does not contain any of them at the moment of caching. How should i cache it?