You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to invalidate all entries tagged with multiple tags by providing just one of this tags, but to access an entry you have to pass all tags in the exact order. It would be great if you could access all entries tagged with multiple tags by providing just one of this tags.
Example for my case:
I'm creating a package to cache eloquent queries.
Storing
List of authors Cache::tags(['author-1', 'author-2', 'author-3', 'author-all'])->put('List'.$checksum, $authorList, $minutes);
Invalidate
Invalidate author (for example update author) Cache::tags(['author-1'])->flush();
Invalidate list (for exampe I added a new author) Cache::tags(['author-all'])->flush();
Accessing
To get the list I have to know all tags: Cache::tags(['author-1', 'author-2', 'author-3', 'author-all'])->get('List'.$checksum);