Download the PHP package honchoagency/craft-yesterdays-news without Composer

On this page you can find all versions of the php package honchoagency/craft-yesterdays-news. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package craft-yesterdays-news

Yesterday’s News

A Craft CMS 5 plugin that automatically removes stale pages from your Blitz static cache.

Requires Craft CMS ^5.9 and Blitz.

TL;DR

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

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

  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

1. Install Yesterday's News

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

2. Configure the plugin

Copy the default config file into your project:

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

3. Set up cron jobs

Two cron entries are required.

Configuration

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

Setting Default Description
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 details

CP Diagnostics

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

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

Credits

Built by honcho.agency


All versions of craft-yesterdays-news with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
craftcms/cms Version ^5.9.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package honchoagency/craft-yesterdays-news contains the following files

Loading the files please wait ...