Download the PHP package nguyenhiep/laravel-cache-garbage-collector without Composer
On this page you can find all versions of the php package nguyenhiep/laravel-cache-garbage-collector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nguyenhiep/laravel-cache-garbage-collector
More information about nguyenhiep/laravel-cache-garbage-collector
Files in nguyenhiep/laravel-cache-garbage-collector
Package laravel-cache-garbage-collector
Short Description A script that will clean up expired cache files if the system is using the files cache system
License MIT
Homepage https://github.com/jdavidbakr/LaravelCacheGarbageCollector
Informations about the package laravel-cache-garbage-collector
LaravelCacheGarbageCollector
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!
Install
Via Composer
Then add the service provider to app/Console/Kernel.php
in the \$commands array:
Usage
Contributing
Please see CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Jon Baker
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-cache-garbage-collector with dependencies
php Version >=7.1.0
mockery/mockery Version ^1.3