PHPackages                             omaresmael/cache-watcher - 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. omaresmael/cache-watcher

ActiveLibrary[Caching](/categories/caching)

omaresmael/cache-watcher
========================

Laravel package that monitors the changes on the cacheable files and refresh them

v1.0(1y ago)15MITPHP

Since Nov 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/omaresmael/cache-watcher)[ Packagist](https://packagist.org/packages/omaresmael/cache-watcher)[ RSS](/packages/omaresmael-cache-watcher/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Automatically refresh the Cacheable files when changes are applied to them
==========================================================================

[](#automatically-refresh-the-cacheable-files-when-changes-are-applied-to-them)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8b3949866ffead8895baaf58327be5da4343d0a691e7c66abb55ae76461e6193/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6d617265736d61656c2f63616368652d776174636865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/omaresmael/cache-watcher)[![Total Downloads](https://camo.githubusercontent.com/bbac8de488aa749d098a72343fd22554bbd90e7ddd2a6fa128f37de9b5967720/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6d617265736d61656c2f63616368652d776174636865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/omaresmael/cache-watcher)

This package saves you some time wondering why your code is not working

It monitors the cacheable files (config, routes, events), and runs `optimize` command on every change applied on the them

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

[](#installation)

You can install the package via composer:

```
composer require omaresmael/cache-watcher --dev
```

In your project, you should have the JavaScript package [`chokidar`](https://github.com/paulmillr/chokidar) installed. You can install it via npm

```
npm install chokidar --save-dev
```

Usage
-----

[](#usage)

Run `php artisan cache:watch`

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

532d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10cb22dd603df7b6d46ba7e8dd60a42de132d012f172097176c399c215b10ef5?d=identicon)[omaresmael](/maintainers/omaresmael)

---

Top Contributors

[![omaresmael](https://avatars.githubusercontent.com/u/33787232?v=4)](https://github.com/omaresmael "omaresmael (5 commits)")

---

Tags

laravelcache-watcherlaravel-cache-watcher

### Embed Badge

![Health badge](/badges/omaresmael-cache-watcher/health.svg)

```
[![Health](https://phpackages.com/badges/omaresmael-cache-watcher/health.svg)](https://phpackages.com/packages/omaresmael-cache-watcher)
```

###  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)
