PHPackages                             haddowg/tfilecache - 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. haddowg/tfilecache

ActiveLibrary[Caching](/categories/caching)

haddowg/tfilecache
==================

Taggable File Cache driver for Laravel. Allows the use of Cache tags with a file cache.

1.0.10(8y ago)0251MITPHP

Since Oct 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/haddowg/taggedFileCache)[ Packagist](https://packagist.org/packages/haddowg/tfilecache)[ RSS](/packages/haddowg-tfilecache/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Laravel Taggable File Cache
===========================

[](#laravel-taggable-file-cache)

This package provides a custom file [cache driver](https://laravel.com/docs/5.1/cache#adding-custom-cache-drivers) that supports [Cache Tags](https://laravel.com/docs/5.1/cache#cache-tags) for Laravel 5.1 or Lumen 5.2+.

Based on the original repo

Usage
-----

[](#usage)

This product is publicly available under the terms of the MIT license included in this repository. Please refer to the current [brand guidelines](https://www.kent.ac.uk/brand) for use of the existing brand.

Installation and Requirements
-----------------------------

[](#installation-and-requirements)

First, you'll need to require the package with Composer:

```
composer require unikent/tfilecache

```

Then, update `config/app.php` by adding an entry for the service provider.

```
'providers' => [
    // ...
    haddowg\Cache\TaggableFileCacheServiceProvider::class
];

```

Finally, add the necessary config to `config\cache.php`.

```
'default' => env('CACHE_DRIVER', 'tfile'),

'stores' => [

		'tfile' => [
			'driver' => 'tfile',
			'path'   => storage_path('framework/cache')
		],
		// ...
],

```

Optional Configuration
----------------------

[](#optional-configuration)

There are some optional config options available in the store definition above:

`queue` : accepts the string name of a queue to use for [tag clean up](#tag-cleanup), will use the default queue if omitted. `separator` : defines the separator character or sequence to be used internally, this should be chosen to **never** collide with a key value. defaults to `~#~` if omitted.

Tag Cleanup
-----------

[](#tag-cleanup)

To offset the work of cleaning up cache entries when a tag is flushed this task is added as a Job and queued using laravel's inbuilt [queueing](https://laravel.com/docs/5.1/queues). Note: laravel's default queue driver is `sync` which will result in the job being executed synchronously, it is strongly advised you use an alternate queue driver with appropriate workers to offset this work if you wish to use this cache driver.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 78.9% 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 ~0 days

Total

2

Last Release

3214d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8deead49df3205ca08127866adcc5146559895aec400119a64ffe6f4e6477c65?d=identicon)[haddowg](/maintainers/haddowg)

---

Top Contributors

[![gjmh-unikent](https://avatars.githubusercontent.com/u/9929369?v=4)](https://github.com/gjmh-unikent "gjmh-unikent (15 commits)")[![haddowg](https://avatars.githubusercontent.com/u/10784397?v=4)](https://github.com/haddowg "haddowg (4 commits)")

### Embed Badge

![Health badge](/badges/haddowg-tfilecache/health.svg)

```
[![Health](https://phpackages.com/badges/haddowg-tfilecache/health.svg)](https://phpackages.com/packages/haddowg-tfilecache)
```

PHPackages © 2026

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