You need to use cache tags, but they are not supported when using the file, dynamodb, or database cache drivers.
Nov 26, 2020
5
Level 8
How to remove all caches prefixed by a specific string ?
Hello ,
I created a cache depending to the user id :
Cache::forever('users_list'.$userId, $values);
I want when I add users to update the cache values , so I delete all the caches starting with users_list
like that I will delete users_list1 users_list2 users_list3 users_list4 users_list5 users_list6...
Please or to participate in this conversation.