laravel-repositories icon indicating copy to clipboard operation
laravel-repositories copied to clipboard

Caching does not work with whereIn(query builder) or whereHas

Open thebirds opened this issue 5 years ago • 1 comments

I see that the Closure object in whereIn or whereHas is an empty json object when get the json to make the hash on generateCacheHash() method of Cacheable Traits so the hash will not be correct. Do have anyone get the same problem? How to deal with it?

Thanks

thebirds avatar Nov 28 '19 11:11 thebirds

https://github.com/opis/closure

BUGOVER avatar Dec 24 '19 10:12 BUGOVER