Laravel Version
11.23
PHP Version
8.3
Database Driver & Version
No response
Description
I potentially found a bug with Cache::flexible(). Not sure if it is intended or not... but I guess not.
When using Cache::flexible(), two items are stored in the cache. Whenever I Cache::forget() an item that was created via flexible, it doesn't delete the second item (...:created). Now I have to manually delete that item, so the cache is actually gone.
Steps To Reproduce
Step 1:
Cache::flexible('foo', [1, 100], function () {
return 'bar';
});
Two items are cached:
"example"
"example:created"
Step 2:
One item is deleted, example.
The other example:created still exists.