manifest / performance / wp-404-caching
WP 404 Caching #8 in Performance & Caching
Full Page Cache for WordPress 404s
by Alley · github.com/alleyinteractive/wp-404-caching · website
★ 13stars
395kcomposer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/alleyinteractive/wp-404-caching/archive/refs/heads/develop.zipAlso on Packagist as alleyinteractive/wp-404-caching:
composer require alleyinteractive/wp-404-cachingFrom the readme
WP 404 Caching
A WordPress plugin to provide full page caching for 404 pages, improving performance and reducing server load.
Requirements
- SSL enabled on the website.
- An external object cache setup (e.g., Redis, Memcached).
- Requires at least: 6.3
- Tested up to: 6.4
- Requires PHP: 8.1
- License: GPL v2 or later
Description
WP 404 Caching is a lightweight plugin that efficiently serves cached 404 pages to non-logged-in users. It reduces server load by storing the cached 404 page in an external object cache and returning it early in the request process.
The plugin uses a dual regular/stale caching strategy to minimize cache misses. It maintains a regular cache with a 1-hour expiration and a stale cache with a 1-day expiration. If the regular cache is empty, the stale cache is served.
Features
- Full page caching for 404 pages
- Utilizes external object cache for storing cached 404 pages
- Dual regular/stale caching strategy to minimize cache misses
- Automatically generates and caches 404 page via a "guaranteed 404 URI"
- Triggers cache generation hourly via a cron job and immediately on cache misses
- Sends X-WP-404-Cache header to indicate cache HIT/MISS status
- Ens
Read the full README on GitHub →