PHPackages                             mitydigital/statamic-scheduled-cache-invalidator - 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. mitydigital/statamic-scheduled-cache-invalidator

ActiveStatamic-addon[Caching](/categories/caching)

mitydigital/statamic-scheduled-cache-invalidator
================================================

A command to help invalidate the cache when scheduled Statamic entries are due to go live.

2.2.1(8mo ago)319.3k↓20.8%2MITPHPPHP ^8.2

Since Dec 15Pushed 8mo ago2 watchersCompare

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

READMEChangelog (10)Dependencies (7)Versions (15)Used By (0)

Scheduled Cache Invalidator for Statamic
========================================

[](#scheduled-cache-invalidator-for-statamic)

[![Statamic 4.0](https://camo.githubusercontent.com/69f31e8192506199f5255bbc0ec3f017518e04421d27bb12c4fd6999f672e690/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d342e302d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)](https://camo.githubusercontent.com/69f31e8192506199f5255bbc0ec3f017518e04421d27bb12c4fd6999f672e690/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d342e302d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)[![Statamic 5.0](https://camo.githubusercontent.com/4fe7208c01793b2fbda8cc700f417b5f1179f399cf198c473ecdfbf38f895913/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d352e302d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)](https://camo.githubusercontent.com/4fe7208c01793b2fbda8cc700f417b5f1179f399cf198c473ecdfbf38f895913/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d352e302d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)[![Statamic 6.0](https://camo.githubusercontent.com/f5da75a380a54dfac7b1573728199bc0ae2aa2d93facf29730f13e123cba7146/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d362e302d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)](https://camo.githubusercontent.com/f5da75a380a54dfac7b1573728199bc0ae2aa2d93facf29730f13e123cba7146/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d362e302d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)[![Scheduled Cache Invalidator for Statamic on Packagist](https://camo.githubusercontent.com/6976386d475d0b3f93a6f3f84fcf398fe23c8a5d778276b6b89e497658f056d1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6974796469676974616c2f73746174616d69632d7363686564756c65642d63616368652d696e76616c696461746f723f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/mitydigital/statamic-scheduled-cache-invalidator/stats)

---

> A command to help invalidate the static cache when scheduled entries are due to go live.

What is it?
-----------

[](#what-is-it)

Let's say you have a Blog, and your Statamic site uses full (or half) Static Caching.

Now, imagine you have written a blog post that you want to go live at midday tomorrow.

What would you prefer to do:

- wait around until midday tomorrow to manually click publish at 12:00 on the dot, or
- publish now, and have this utility take care of flushing the cache for you?

This command is designed to be run every minute, and looks for Entries (in all of your **dated** Collections) that are scheduled to be published at that minute.

Documentation
-------------

[](#documentation)

See the [documentation](https://docs.mity.com.au/scheduled-cache-invalidator) for detailed installation, configuration and usage instructions.

Testing
-------

[](#testing)

```
composer test
```

Security
--------

[](#security)

Security related issues should be emailed to  instead of logging an issue.

Support
-------

[](#support)

We love to share work like this, and help the community. However it does take time, effort and work.

The best thing you can do is [log an issue](../../issues).

Please try to be detailed when logging an issue, including a clear description of the problem, steps to reproduce the issue, and any steps you may have tried or taken to overcome the issue too. This is an awesome first step to helping us help you. So be awesome - it'll feel fantastic.

Credits
-------

[](#credits)

- [Marty Friedel](https://github.com/martyf)
- [Ryan Mitchell](https://github.com/ryanmitchell) for tweaking clearing behaviour to help with entries, adding query scope support, and date/time query corrections following core updates
- [Michael Aerni](https://github.com/aerni) for support of undated collections
- [Sylvester Damgaard](https://github.com/SylvesterDamgaard) for correcting an SQL issue

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance58

Moderate activity, may be stable

Popularity32

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 67.3% 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 ~51 days

Recently: every ~118 days

Total

13

Last Release

268d ago

Major Versions

1.0.3 → 2.0.02024-03-04

### Community

Maintainers

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

---

Top Contributors

[![martyf](https://avatars.githubusercontent.com/u/1491079?v=4)](https://github.com/martyf "martyf (35 commits)")[![ryanmitchell](https://avatars.githubusercontent.com/u/51899?v=4)](https://github.com/ryanmitchell "ryanmitchell (9 commits)")[![aerni](https://avatars.githubusercontent.com/u/23167701?v=4)](https://github.com/aerni "aerni (7 commits)")[![sylvesterdamgaard](https://avatars.githubusercontent.com/u/2431914?v=4)](https://github.com/sylvesterdamgaard "sylvesterdamgaard (1 commits)")

---

Tags

cachestatamic

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mitydigital-statamic-scheduled-cache-invalidator/health.svg)

```
[![Health](https://phpackages.com/badges/mitydigital-statamic-scheduled-cache-invalidator/health.svg)](https://phpackages.com/packages/mitydigital-statamic-scheduled-cache-invalidator)
```

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

8.1k727.3M2.1k](/packages/psr-simple-cache)[psr/cache

Common interface for caching libraries

5.2k686.9M1.3k](/packages/psr-cache)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[beste/in-memory-cache

A PSR-6 In-Memory cache that can be used as a fallback implementation and/or in tests.

2512.2M6](/packages/beste-in-memory-cache)[anahkiasen/flatten

A package for the Illuminate framework that flattens pages to plain HTML

33113.0k](/packages/anahkiasen-flatten)[rtcamp/nginx-helper

Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also provides cloudflare edge cache purging with Cache-Tags.

23517.0k1](/packages/rtcamp-nginx-helper)

PHPackages © 2026

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