PHPackages                             toanld/laravel-clear-expired-cache-file - 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. toanld/laravel-clear-expired-cache-file

ActiveLibrary[Caching](/categories/caching)

toanld/laravel-clear-expired-cache-file
=======================================

Remove laravel expired cache file/folder

v1.0.2(4y ago)010MITPHPPHP &gt;=5.4.0

Since May 2Pushed 4y agoCompare

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

READMEChangelogDependencies (1)Versions (7)Used By (0)

Clear Expired Cache files in Laravel
====================================

[](#clear-expired-cache-files-in-laravel)

This package will remove any expired cache file, this only works with `file` cache driver. It will also remove any empty folder after removing the expired cache files, so your cache folder will be totally clean.

Installation
------------

[](#installation)

1. Add toanld/laravel-clear-expired-cache-file to your project:

```
composer require toanld/laravel-clear-expired-cache-file
```

2. For **Laravel &gt;= 5.5** we use Package Auto-Discovery, so you may skip this step. For **Laravel &lt; 5.5**, add `CacheClearServiceProvider` to the providers array in config/app.php:

```
Arifhp86\ClearExpiredCacheFile\Providers\CacheClearServiceProvider::class,
```

Usage
-----

[](#usage)

```
php artisan cache:clear-expired
```

License &amp; Copyright
-----------------------

[](#license--copyright)

MIT, (c) 2019 Arifur Rahman

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~217 days

Recently: every ~254 days

Total

6

Last Release

1481d ago

Major Versions

v0.0.4 → v1.0.12022-04-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/b884bdad7cead7cd70b807b4c4f3453d6eee6f4e7e8326b42a799553fb63eb9c?d=identicon)[toanld1905](/maintainers/toanld1905)

---

Top Contributors

[![arifhp86](https://avatars.githubusercontent.com/u/11217843?v=4)](https://github.com/arifhp86 "arifhp86 (4 commits)")[![toanld](https://avatars.githubusercontent.com/u/33773069?v=4)](https://github.com/toanld "toanld (2 commits)")[![attogram](https://avatars.githubusercontent.com/u/8653063?v=4)](https://github.com/attogram "attogram (1 commits)")[![barry-pederson](https://avatars.githubusercontent.com/u/128503581?v=4)](https://github.com/barry-pederson "barry-pederson (1 commits)")[![zaxxo-dkraemer](https://avatars.githubusercontent.com/u/122027358?v=4)](https://github.com/zaxxo-dkraemer "zaxxo-dkraemer (1 commits)")

---

Tags

laravelcacheclearexpired

### Embed Badge

![Health badge](/badges/toanld-laravel-clear-expired-cache-file/health.svg)

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

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.2M51](/packages/spatie-laravel-responsecache)[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

975163.6k2](/packages/awssat-laravel-visits)[arifhp86/laravel-clear-expired-cache-file

Remove laravel expired cache file/folder

36128.7k](/packages/arifhp86-laravel-clear-expired-cache-file)[vectorial1024/laravel-cache-evict

Efficiently remove expired Laravel file/database cache data

5813.2k](/packages/vectorial1024-laravel-cache-evict)[dragon-code/laravel-cache

An improved interface for working with cache

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

A handful of Cloudflare cache helpers for Laravel

1317.7k](/packages/nexxai-laravel-cfcache)

PHPackages © 2026

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