PHPackages                             honchoagency/craft-yesterdays-news - 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. honchoagency/craft-yesterdays-news

ActiveCraft-plugin[Caching](/categories/caching)

honchoagency/craft-yesterdays-news
==================================

Automatically removes unvisited pages from your Blitz cache.

0.0.2(3w ago)06mitPHPPHP &gt;=8.2

Since May 15Pushed 1w agoCompare

[ Source](https://github.com/honchoagency/craft-yesterdays-news)[ Packagist](https://packagist.org/packages/honchoagency/craft-yesterdays-news)[ RSS](/packages/honchoagency-craft-yesterdays-news/feed)WikiDiscussions master Synced 1w ago

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

[![Banner](./docs/img/banner.png)](./docs/img/banner.png)

Yesterday’s News
================

[](#yesterdays-news)

A Craft CMS 5 plugin that automatically removes stale pages from your [Blitz](https://putyourlightson.com/plugins/blitz) static cache.

Requires Craft CMS ^5.9 and Blitz.

TL;DR
-----

[](#tldr)

Yesterday's News automatically deletes pages from the Blitz cache if the page hasn't been visited in X time (configurable).

The problem
-----------

[](#the-problem)

On sites with a large amount of infrequently-visited content, the Blitz cache can grow to include thousands of pages that nobody is actually reading. This makes Blitz' refresh cycles unnecessarily large and slow.

Yesterday's News tracks when each page was last visited and removes pages that haven't been seen within a configurable threshold. The cache stays lean, and refresh cycles only cover pages people are actually reading.

Quick start
-----------

[](#quick-start)

1. Install the plugin
2. Set up the two cron jobs
3. Visit **Utilities → Yesterday's News** in the Craft CP to see tracked pages and their status
4. 🎉

The plugin works automatically from there. Pages visited by real users are tracked via a lightweight background request that fires on every page load. Pages that fall outside the configured threshold are pruned from Blitz on the next scheduled run.

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

[](#installation)

### 1. Install Yesterday's News

[](#1-install-yesterdays-news)

You can install Yesterday's News by searching for “Yesterday's News” in the Craft Plugin Store, or install manually using composer.

```
composer require honchoagency/craft-yesterdays-news
```

### 2. Configure the plugin

[](#2-configure-the-plugin)

Copy the default config file into your project:

```
cp vendor/honchoagency/craft-yesterdays-news/src/config.php config/yesterdays-news.php
```

Then edit `config/yesterdays-news.php` to adjust the thresholds for your site.

### 3. Set up cron jobs

[](#3-set-up-cron-jobs)

Two cron entries are required.

```
# Track visits and sync with Blitz — eg every 5 minutes
*/5 * * * * php craft yesterdays-news/maintain/run

# Prune stale pages from Blitz — eg every hour
0 * * * * php craft yesterdays-news/prune/run
```

Configuration
-------------

[](#configuration)

All settings are in `config/yesterdays-news.php`. The defaults work for most sites:

SettingDefaultDescription`pagePruningEnabled``true`Whether to prune stale pages from Blitz`threshold``86400` (24h)Seconds since last visit before a page is pruned`includePruningEnabled``true`Whether to prune stale cached template includes`entryAgeThreshold``2592000` (30d)Seconds since an entry was last updated before its cached includes are eligible for pruning`includeThreshold``86400` (24h)Seconds a cached include must be before it is eligible for pruning`includeTemplates``[]`Map of include template paths to their entry ID param — see `config/yesterdays-news.php` for detailsCP Diagnostics
--------------

[](#cp-diagnostics)

The **Utilities → Yesterday's News** page in the Craft CP shows:

- All tracked pages with their age, fresh/stale status, and time until pruning
- Any visits currently buffered and waiting to be recorded
- Cached template includes and their prune status

Buttons let you manually flush, prune, sync, or clear all data without waiting for the cron schedule.

Credits
-------

[](#credits)

Built by [honcho.agency](https://honcho.agency)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance97

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

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

Every ~0 days

Total

2

Last Release

25d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1457786?v=4)[Michael Westwood](/maintainers/mijewe)[@mijewe](https://github.com/mijewe)

---

Top Contributors

[![mijewe](https://avatars.githubusercontent.com/u/1457786?v=4)](https://github.com/mijewe "mijewe (11 commits)")

### Embed Badge

![Health badge](/badges/honchoagency-craft-yesterdays-news/health.svg)

```
[![Health](https://phpackages.com/badges/honchoagency-craft-yesterdays-news/health.svg)](https://phpackages.com/packages/honchoagency-craft-yesterdays-news)
```

###  Alternatives

[putyourlightson/craft-blitz

Intelligent static page caching for creating lightning-fast sites.

155480.1k35](/packages/putyourlightson-craft-blitz)[spicyweb/craft-neo

A Matrix-like field type with block hierarchy

393808.8k10](/packages/spicyweb-craft-neo)[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

294943.4k27](/packages/craftcms-feed-me)[clubstudioltd/craft-asset-rev

A plugin to aid cache-busting

110513.2k9](/packages/clubstudioltd-craft-asset-rev)[verbb/formie

The most user-friendly forms plugin for Craft.

100387.6k57](/packages/verbb-formie)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

53675.5k15](/packages/solspace-craft-freeform)

PHPackages © 2026

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