LaravelPackages.net
Acme Inc.
Toggle sidebar
solution9th/laravel-file-cache-gc

Laravel file cache garbage collection.

4.133
0
v0.0.2
About solution9th/laravel-file-cache-gc

solution9th/laravel-file-cache-gc is a Laravel package for laravel file cache garbage collection.. It currently has 0 GitHub stars and 4.133 downloads on Packagist (latest version v0.0.2). Install it with composer require solution9th/laravel-file-cache-gc. Discover more Laravel packages by solution9th or browse all Laravel packages to compare alternatives.

Last updated

Laravel file cache gc

In some cases, file cache driver is the more suitable choice for our project, but laravel do not clean up the old files unless you get it, and the expired cache files may fill up the disk.

This package create an artisan command cache:file-gc do the garbage collection work that help you clean up the expired cache files.

Installation

composer require solution9th/laravel-file-cache-gc

Usage

  • Run the command manually, and you can with option -d to output the deleted files.
php artisan cache:file-gc
  • As a schedule write in app/Console/Kernel.php.
$schedule->command('cache:file-gc')->dailyAt('02:00');

License

MIT.

Star History Chart