Unable to flush withCount()
jetwes opened this issue · 2 comments
jetwes commented
If i query a realtion with withCount() the counting is never been refreshed, even after flushing the cache. The counting only works if I add dontRemember() to the query...
dwightwatson commented
That’s odd. I don’t have time to dedicate to this right now, but would be happy to look at a PR that resolves it.
jetwes commented
The withCount() queries are built using the Illuminate\Database\Eloquent\Builder. I think this is the problem because your package only handles the Illuminate\Database\Query\Builder.
This isn't trivial to solve... I'll look if i have a bit time to solve this...