PHPackages                             solution9th/laravel-file-cache-gc - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. solution9th/laravel-file-cache-gc

ActiveLibrary[Caching](/categories/caching)

solution9th/laravel-file-cache-gc
=================================

Laravel file cache garbage collection.

v0.0.2(6y ago)03.9k1MITPHP

Since Sep 27Pushed 6y ago2 watchersCompare

[ Source](https://github.com/solution9th/laravel-file-cache-gc)[ Packagist](https://packagist.org/packages/solution9th/laravel-file-cache-gc)[ RSS](/packages/solution9th-laravel-file-cache-gc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Laravel file cache gc
=====================

[](#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
------------

[](#installation)

`composer require solution9th/laravel-file-cache-gc`

Usage
-----

[](#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
-------

[](#license)

[MIT](LICENSE).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~43 days

Total

2

Last Release

2383d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c4a9e7ad6ec6865ba80b35a0430b6ec18f504a416c29a22508629546cfaa084?d=identicon)[rookie0](/maintainers/rookie0)

---

Top Contributors

[![rookie0](https://avatars.githubusercontent.com/u/5813232?v=4)](https://github.com/rookie0 "rookie0 (3 commits)")

---

Tags

laravelgarbage collectioncache clearclear expired filefile cache gcexpired cache file clear

### Embed Badge

![Health badge](/badges/solution9th-laravel-file-cache-gc/health.svg)

```
[![Health](https://phpackages.com/badges/solution9th-laravel-file-cache-gc/health.svg)](https://phpackages.com/packages/solution9th-laravel-file-cache-gc)
```

###  Alternatives

[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

975163.6k2](/packages/awssat-laravel-visits)[swayok/alternative-laravel-cache

Replacements for Laravel's redis and file cache stores that properly implement tagging idea. Powered by cache pool implementations provided by http://www.php-cache.com/

202541.1k6](/packages/swayok-alternative-laravel-cache)[ryangjchandler/blade-cache-directive

Cache chunks of your Blade markup with ease.

202200.8k2](/packages/ryangjchandler-blade-cache-directive)[encore/redis-manager

Redis manager for laravel

25243.1k](/packages/encore-redis-manager)[alexmg86/laravel-sub-query

Laravel subquery

7538.4k](/packages/alexmg86-laravel-sub-query)[dragon-code/laravel-cache

An improved interface for working with cache

6844.8k10](/packages/dragon-code-laravel-cache)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
