PHPackages                             tccltd/tcc-cache-buster - 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. tccltd/tcc-cache-buster

ActiveLibrary[Caching](/categories/caching)

tccltd/tcc-cache-buster
=======================

TccCacheBuster Package

1.1.1(11y ago)061PHPPHP &gt;=5.3.0

Since May 21Pushed 11y ago3 watchersCompare

[ Source](https://github.com/tccltd/TccCacheBuster)[ Packagist](https://packagist.org/packages/tccltd/tcc-cache-buster)[ RSS](/packages/tccltd-tcc-cache-buster/feed)WikiDiscussions master Synced 1w ago

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

TccCacheBuster Module
=====================

[](#tcccachebuster-module)

This module automatically inserts a version number into the head links and head scripts you have on your pages. The version number is pulled from the applicaiton config.

```
return [
    'version' => '1.1.1',
];
```

This will lead to a head link like `/css/my-css-file.1.1.1.css`

If you don't specify a version number nothing happens so can be used in development and then the buildscript for a production environment can insert a config file into the applications `config/autoload` directory.

A minor addition needs to be made to the apache .htaccess file to allow this to work using ModRewrite...

```
# Capture version bumping of files
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)\.([0-9]+\.[0-9]+\.[0-9]+)\.(js|css|png|jpg|gif)$ /$1.$3 [L]

```

(Note: With the above you can also version images but this module does not automatically do this).

Why do I need this?
-------------------

[](#why-do-i-need-this)

If you web server is set to cache js/css files in a users browser and you release a new version the browser will pull files from cache rather than download new version from the server.

By altering the version number of the file requested the browser downloads a new version from the server when the files have changed.

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

4064d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/2eaddd407d97157252f498929934fb836fbc8e5478ac5638d52ba978ce4c6940?d=identicon)[mtudor](/maintainers/mtudor)

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

### Embed Badge

![Health badge](/badges/tccltd-tcc-cache-buster/health.svg)

```
[![Health](https://phpackages.com/badges/tccltd-tcc-cache-buster/health.svg)](https://phpackages.com/packages/tccltd-tcc-cache-buster)
```

###  Alternatives

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[socalnick/scn-esi-widget

Enables ZF2 apps to output ESI tags for a widgetized and highly cacheable application.

309.0k](/packages/socalnick-scn-esi-widget)[ichhabrecht/intcache

Turn uncachable page objects into cacheable links

193.9k](/packages/ichhabrecht-intcache)

PHPackages © 2026

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