-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Closed
Description
Laravel Version
10.16.1
PHP Version
8.2.8
Database Driver & Version
mysql Ver 15.1 Distrib 10.7.8-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper
Description
Hello,
In production, the
Cache::tags('TAGS')->flush();
It only works after a few days and then stopped working completely.
Cache::tags('TAGS')->get(cache_key(['TAGS' => true, 'PAGE' => 1, 'SORT' => 'newest']));
= Illuminate\Pagination\LengthAwarePaginator {#7281
+onEachSide: 3,
}
> Cache::tags('TAGS')->flush();
= true
> Cache::tags('TAGS')->get(cache_key(['TAGS' => true, 'PAGE' => 1, 'SORT' => 'newest']));
= Illuminate\Pagination\LengthAwarePaginator {#8029
+onEachSide: 3,
}
> Cache::tags('TAGS')->forget(cache_key(['TAGS' => true, 'PAGE' => 1, 'SORT' => 'newest']));
= true
> Cache::tags('TAGS')->get(cache_key(['TAGS' => true, 'PAGE' => 1, 'SORT' => 'newest']));
= null
I was under the expression that it could be the flush function that isn't working so I tried doing the forget function, as expected, it works just fine, but the flush isn't working.
leo108 and andreaszak
Metadata
Metadata
Assignees
Labels
No labels