File tree Expand file tree Collapse file tree 2 files changed +6
-14
lines changed
Expand file tree Collapse file tree 2 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 1919 ],
2020 "require" : {
2121 "php" : " ^8.3" ,
22+ "illuminate/cache" : " ^11.0||^12.0" ,
2223 "illuminate/contracts" : " ^11.0||^12.0" ,
24+ "illuminate/filesystem" : " ^11.0||^12.0" ,
2325 "illuminate/http" : " ^11.0||^12.0" ,
2426 "illuminate/support" : " ^11.0||^12.0" ,
25- "illuminate/filesystem" : " ^11.0||^12.0" ,
26- "illuminate/cache" : " ^11.0||^12.0" ,
2727 "monolog/monolog" : " ^3.6"
2828 },
2929 "require-dev" : {
3535 "pestphp/pest-plugin-arch" : " ^3.0" ,
3636 "pestphp/pest-plugin-laravel" : " ^3.0" ,
3737 "phpstan/extension-installer" : " ^1.3" ,
38- "phpstan/phpstan-deprecation-rules" : " ^1.1 " ,
39- "phpstan/phpstan-phpunit" : " ^1.3 "
38+ "phpstan/phpstan-deprecation-rules" : " ^2.0 " ,
39+ "phpstan/phpstan-phpunit" : " ^2.0 "
4040 },
4141 "autoload" : {
4242 "psr-4" : {
Original file line number Diff line number Diff line change @@ -45,16 +45,8 @@ public function add(string $signature): void
4545 */
4646 public function clear (): void
4747 {
48- // For Redis/Memcached stores that support tag-like operations
49- if (method_exists ($ this ->cache ->getStore (), 'flush ' )) {
50- $ this ->cache ->getStore ()->flush ();
51-
52- return ;
53- }
54-
55- // For other stores, we'll have to rely on TTL cleanup
56- // You might want to implement a more specific cleanup strategy
57- // based on your cache store if needed
48+ // All Laravel cache stores implement the flush method
49+ $ this ->cache ->getStore ()->flush ();
5850 }
5951
6052 private function composeKey (string $ signature ): string
You can’t perform that action at this time.
0 commit comments