Repository navigation
v1.0.9
Important
The v1.0.9 tag is not signed. Release tags in this repository are immutable, so it cannot be replaced with a signed tag. Nginx Cache 1.0.10 is the signed successor with identical code; prefer it for new installs and updates.
Nginx Cache 1.0.9 makes the generated one-minute 404 cache rule actually work. Previously every 404, including bot scans for missing files, reached PHP.
- Anonymous 404 responses are cached for one minute. WordPress sends
Cache-Control: no-cache, must-revalidate, max-age=0, no-store, privatewith every 404, so Nginx never stored one and the generatedfastcgi_cache_valid 404 1mrule had no effect. Anonymous GET/HEAD 404s now sendCache-Control: public, max-age=60through the corenocache_headersfilter. Logged-in, admin, AJAX, cron and authorized requests keep WordPress' no-store headers, and every othernocache_headers()caller is unchanged.
On upgrade: option names, stored values and the generated Nginx configuration are unchanged, so no Nginx reload is required. 404 pages for anonymous visitors may now be served from the Nginx cache for up to 60 seconds. Publishing content at a previously missing URL purges that URL as before.
Implementation:
- #48 (closes #47). It also updates the development dependency PHPUnit to 13.4.5 for GHSA-9vw2-f4vp-x7gf, which
composer auditin the QA job rejected.
Release preparation: #49
Release commit: 2c2eb483eb62749431bba8f7ea6b39605d94d3a2.
Validation: all eight QA checks passed on the fix PR and on the rebased release PR, and the post-merge QA run on main passed. Local QA also passed: 115 tests / 570 assertions, coding standards, static analysis and hook checks. An end-to-end check with real Nginx and PHP-FPM using the generated configuration and WordPress' exact 404 headers showed MISS MISS MISS before and MISS HIT HIT after the change, with logged-in requests bypassed. The ZIP contains the production dependencies and passed checksum and source checks: 2,475 file checksums, 124 source files identical to the release commit, and no development packages. Archive build and checks.
Download ns-nginx-cache-1.0.9.zip below for a ready-to-install WordPress package. The automatically generated GitHub source archives do not include the production dependencies. Composer users can update sympress/nginx-cache to ^1.0.9.
SHA-256 for ns-nginx-cache-1.0.9.zip:
ef3444518ec45a60138ac9ecc25383f6bb58ede0e60a1e7f7a853912e6d161fb