PHPackages                             nitogel/laravel-fcache-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. nitogel/laravel-fcache-gc

ActiveLibrary[Caching](/categories/caching)

nitogel/laravel-fcache-gc
=========================

A Laravel package to backup your application

v0.1(6y ago)010MITPHPPHP ^7.2CI failing

Since Nov 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/nitogel/laravel-fcache-gc)[ Packagist](https://packagist.org/packages/nitogel/laravel-fcache-gc)[ Docs](https://github.com/spatie/laravel-backup)[ RSS](/packages/nitogel-laravel-fcache-gc/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

Laravel file cache garbage collector
====================================

[](#laravel-file-cache-garbage-collector)

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 Jon Baker for inspire \[\]

Install
-------

[](#install)

Via Composer

```
$ composer require nitogel/laravel-fcache-gc
```

Then add the service provider to `app/Console/Kernel.php` in the $commands array:

```
\Nitogel\LaravelFileCacheGarbageCollector\ClearExpiredCache::class
```

Usage
-----

[](#usage)

```
$ php artisan cache:gc
```

```
$ php artisan cache:gc -d -i
```

Params
------

[](#params)

`-d` deleting folders `-i` interactive deleting

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

2428d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10072011?v=4)[Kirill](/maintainers/nitogel)[@nitogel](https://github.com/nitogel)

---

Top Contributors

[![nitogel](https://avatars.githubusercontent.com/u/10072011?v=4)](https://github.com/nitogel "nitogel (9 commits)")

---

Tags

laravelcacheclearnitogel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nitogel-laravel-fcache-gc/health.svg)

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M184](/packages/laravel-ai)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M125](/packages/roots-acorn)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k9.0M68](/packages/spatie-laravel-responsecache)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.5M82](/packages/unisharp-laravel-filemanager)[illuminate/queue

The Illuminate Queue package.

21332.6M1.5k](/packages/illuminate-queue)[laravel/folio

Page based routing for Laravel.

603583.7k32](/packages/laravel-folio)

PHPackages © 2026

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