Repository navigation
v0.3.0
Nginx Cache 0.3.0 fixes misleading dashboard measurements and failed purge previews, and adds bounded background prewarming with a clearer administration UI.
- Measure eligible Nginx requests over the last hour, with the request denominator, status counts, sample notices and explicit missing/unreadable/empty states. Cache directory availability no longer implies a 100% hit rate.
- Preview expired caches with retained hexadecimal directory levels without creating or modifying cache roots, sentinels or locks. Display the actual failure reason and previewed entry count.
- Use NGINX green accents, black action buttons, consistent section headings, a responsive metrics panel and collapsed measurement details. Keep styles scoped to the plugin and the purge-rule matrix usable on narrow screens.
- Restore ordinary anonymous caching with an exact empty-query Nginx map entry. Export separate HTTP/server/logging/FastCGI includes, including a private metrics log outside the cache root.
- Add validated cache validity, inactivity, disk and key-zone limits while retaining the existing defaults.
- Process deferred prewarming in durable five-URL batches, checkpoint individual successful URLs, preserve previous failure budgets and treat HTTP errors/redirects as failures.
Requires PHP 8.5 with DOM and Sodium, and WordPress 6.9 or later. Apply regenerated Nginx includes through the existing server deployment process to activate updated maps, limits and metrics logging. The plugin does not reload Nginx. Grant PHP access to the private metrics log and configure rotation. Keep WordPress cron running reliably for deferred work. Prewarm requests are included in the hit-rate measurement.
Implemented, reviewed and rebase-merged through PR #16. The new local feature-set roadmap is not included in the PR or package.
Validation: coding standards, PHPStan and 71 unit tests / 313 assertions; nine real Nginx HTTP cases; hosted WordPress/MariaDB and WordPress/MySQL concurrency regressions; anonymous and encrypted-password Redis integration. The local WordPress UI was checked across seven sections at 320/768/1024/1440px, with keyboard and axe checks. Dry-run verification preserved cache hashes/mtimes/directories, queue and tag index.
The installable ZIP includes production dependencies, the dashboard stylesheet, artifact-manifest.json and per-file checksums. Prototypes and project development files are excluded. A separate SHA-256 file accompanies the ZIP.
The locally verified SSH-signed tag points to main commit 2c2cfd1509f29c3bb9aff4487e25a7d59d2ad681. Main CI and the tagged WordPress archive build and Plugin Check passed. All 2,435 manifest checksums, ZIP structure/CRC, production source identity and packaged entrypoint/autoload, metrics and Nginx include generation were verified before publication. Packagist v0.3.0 resolves to the same commit.