| 开发者 |
wrenio
freemius |
|---|---|
| 更新时间 | 2026年6月2日 19:17 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
srcset, and in-content image URLs to the R2 (or CDN) origin.wp-config.php:
define( 'WRENIO_R2_ACCOUNT_ID', 'your-account-id' );
define( 'WRENIO_R2_ACCESS_KEY_ID', 'your-access-key' );
define( 'WRENIO_R2_SECRET_ACCESS_KEY', 'your-secret-key' );
define( 'WRENIO_R2_BUCKET_NAME', 'your-bucket-name' );
define( 'WRENIO_R2_PUBLIC_URL', 'https://media.example.com' );
Constants take priority over values stored in the database.
The reconciliation tool
R2 object keys are derived from the stable _wp_attached_file meta. If keys drift away from an attachment's physical file path — for example, due to external tooling or imported content — the Reconcile page detects the drift and previews the realignment plan.
Run Wrenio Media Offload → R2 Reconcile → "Start Dry Run" to scan and preview a fix plan. (Live realignment that moves R2 objects to their correct keys is available in the Pro version — see below.)
Cleanup tools
_wp_attached_file differs from the R2 key (typically caused by double-dot or similar normalization mismatches) and repairs the WordPress meta to align with R2.wp-config.php instead — see the "Credentials" block in the Description above.)By default, nothing. The local file stays on the server as a backup. Enable Delete Local Files under Features to delete after a successful upload — but only once you've fully verified your R2 copy.
Images (jpeg, png, gif, webp, svg, bmp, tiff, avif), video (mp4, mov, avi, mpeg, webm, ogv), audio (mp3, ogg, wav, m4a, flac, aac), and PDF. Files up to 50 MB are supported.
Yes, on a per-site basis. Each site stores its own settings and syncs to its own bucket.
The tool processes attachments atomically: for each item, it copies, verifies, updates meta, then deletes the old objects. If any step fails, the attachment is left in a recoverable state — re-running reconciliation picks up where it left off. A retry cap (3 attempts per attachment) prevents a single bad item from blocking the rest; capped items appear in the Status table and are skipped on subsequent runs. (Resetting the retry counter to re-attempt a capped item is a Pro feature.)
The reconciliation and orphan-cleanup tools are destructive (Reconcile deletes old R2 objects after copying; Orphan Cleanup deletes objects it determines are unreferenced). Always:
Yes. ERROR and WARNING entries are always logged regardless of the Debug Logging setting. INFO and DEBUG require Debug Logging to be enabled.