Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
77e30faaeb | ||
|
|
cb4e8a8d8a |
@@ -26,6 +26,7 @@ supplying a value. The headings below describe the mechanism, who calls
|
||||
| `nlcac_preload_urls` | filter | `( array $urls )` — the queue the preloader will walk | preloader |
|
||||
| `nlcac_exclude_script` | filter | `( bool $exclude, string $handle )` — keep a script out of defer | optimiser |
|
||||
| `nlcac_ai_payload` | filter | `( array $payload )` — what the assistant is about to send | assistant |
|
||||
| `nlcac_own_hosts` | filter | `( string[] $hosts )` — host names besides `home_url()`'s that this site answers as itself; pages requested under any other `Host` are never stored, and purge and preload refuse other hosts | page cache |
|
||||
| `nlcac_images_skip` | filter | `( bool $skip, string $img_tag )` — return true to keep one `<img>` out of the WebP/AVIF rewrite | images |
|
||||
|
||||
**If this plugin is absent**, none of these fire. A consumer must not assume
|
||||
|
||||
+3
-2
@@ -18,7 +18,8 @@ others, and to your own code.
|
||||
oEmbed machinery, and can rewrite asset URLs to a CDN.
|
||||
- **Images.** Writes WebP (and optionally AVIF) copies beside JPEG and PNG
|
||||
files and offers them with `<picture>`, so the page cache stays correct for
|
||||
every browser. Originals are never touched.
|
||||
every browser. The images pages use are never touched; an administrator can
|
||||
delete the unused full-size uploads and editor backups of converted images.
|
||||
- **Preloading.** Walks a queue of URLs on a five-minute cron so the first
|
||||
real visitor does not pay for the first render.
|
||||
- **Purging.** Clears the right pages when a post, a term, a comment or a
|
||||
@@ -46,7 +47,7 @@ others, and to your own code.
|
||||
| Drop-ins | `wp-content/advanced-cache.php`, `wp-content/object-cache.php` |
|
||||
| REST namespace | `nlcac/v1` |
|
||||
| Requires | WordPress 6.0, PHP 7.4. WooCommerce optional |
|
||||
| Version | 0.3.2 |
|
||||
| Version | 0.3.4 |
|
||||
|
||||
## Reading order
|
||||
|
||||
|
||||
@@ -44,6 +44,14 @@ next to your JPEG and PNG files and offers them to browsers that understand
|
||||
them. The originals are never touched, so switching it off, or deleting the
|
||||
copies, leaves the site exactly as it was.
|
||||
|
||||
Below the conversion, **Unused source files** (administrators only) deletes
|
||||
what WordPress keeps and no page shows — the full-size upload behind every
|
||||
photo it scaled down, and the earlier versions of images edited in the media
|
||||
library — for images that have been converted. It tells you how many files and
|
||||
how much space first. It cannot be undone, and afterwards "Restore original
|
||||
image" is not offered for those images. `wp cache-manager images sources` counts
|
||||
them; `wp cache-manager images delete-sources` deletes them.
|
||||
|
||||
- Conversion runs in the background; the screen shows how many of the library
|
||||
are done and how much space was saved.
|
||||
- If an image changes size or position after switching on, pick the second
|
||||
|
||||
Reference in New Issue
Block a user