New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

mitydigital/statamic-scheduled-cache-invalidator

A command to help invalidate the cache when scheduled Statamic entries are due to go live.
32,094 3
Install
composer require mitydigital/statamic-scheduled-cache-invalidator
Latest Version:2.2.1
PHP:^8.2
Laravel:12 · 13
License:MIT
Last Updated:Aug 24, 2025
Links: GitHub  ·  Packagist
Maintainer: martyf

Scheduled Cache Invalidator for Statamic

Statamic 4.0 Statamic 5.0 Statamic 6.0 Scheduled Cache Invalidator for Statamic on Packagist


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

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

See the documentation for detailed installation, configuration and usage instructions.

Testing

composer test

Security

Security related issues should be emailed to dev@mity.com.au instead of logging an issue.

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.

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

Related Packages

statamic/cli

Statamic CLI Tool

95,417 77
bunkuris/has-cache

HasCache trait for Laravel models with cache key managers

3,582 0
linksderisar/statamic-custom-select

Custom select field

1,161 0
silber/page-cache

Caches responses as static files on disk for lightning fast page loads.

522,933 1,261
pecotamic/sitemap

Simple sitemap addon for Statamic

175,468 6

Version History

Version Released PHP License
2.2.1 ^8.2 MIT
2.2.0 ^8.2 MIT
2.1.0 ^8.2 MIT
2.0.5 ^8.2 MIT
2.0.4 ^8.2 MIT