Suppose I cached an Eloquent list query like this:
Article::with('comments')->remember(5, 'article_comments')->get();
When I update/delete that model, obviously I have to Cache::forget('article_comments')
to generate/update a new list.
Now, in my app design, those update/delete only happens for a single user, so i was hoping the Cache::forget('article_comments')
only forgets the current user's query list, not all users' in entire network.
So, my question is, will Cache::forget()
deletes entire cache for all users, or only the cache in current user's computer?