| Package Data | |
|---|---|
| Maintainer Username: | jdavidbakr |
| Maintainer Contact: | me@jdavidbaker.com (Jon Baker) |
| Package Create Date: | 2016-01-29 |
| Package Last Update: | 2025-02-19 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-03 15:07:07 |
| Package Statistics | |
|---|---|
| Total Downloads: | 147,279 |
| Monthly Downloads: | 2,468 |
| Daily Downloads: | 49 |
| Total Stars: | 59 |
| Total Watchers: | 1 |
| Total Forks: | 8 |
| Total Open Issues: | 0 |
When using the file cache driver, Laravel creates the cache files but never purges expired ones. This can lead to a situation where you have a large number of unused and irrelevant cache files, especially if you do a lot of short-term caching in your system.
This package creates an artisan command cache:gc that will garbage-collect your cache files, removing any that have expired. You may run this manually or include it in a schedule.
Thanks to TerrePorter for his suggestion on laravel.io!
Via Composer
$ composer require jdavidbakr/laravel-cache-garbage-collector
Then add the service provider to app/Console/Kernel.php in the $commands array:
\jdavidbakr\LaravelCacheGarbageCollector\LaravelCacheGarbageCollector::class
$ php artisan cache:gc
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email me@jdavidbaker.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.