[WordPress] 外掛分享: TP Media Offload & Edge CDN

首頁外掛目錄 › TP Media Offload & Edge CDN
WordPress 外掛 TP Media Offload & Edge CDN 的封面圖片
全新外掛
安裝啟用
尚無評分
剛更新
最後更新
問題解決
WordPress 6.0+ PHP 8.0+ v1.0.0 上架:2026-03-04

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「TP Media Offload & Edge CDN」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

TP Media Offload & Edge CDN is a powerful WordPress plugin that offloads your media files to Cloudflare R2 object storage and serves them through Cloudflare’s global CDN network with automatic image optimization.
Key Features

R2 Storage Integration – Seamlessly upload media to Cloudflare R2 with S3-compatible API
Automatic Offload – New uploads are automatically offloaded to R2
Bulk Offload – Offload existing media library with configurable batch size
CDN Delivery – Serve media through Cloudflare’s global CDN network
Image Optimization – Automatic WebP/AVIF conversion via Cloudflare Image Transformations
Responsive Images – Smart srcset generation with preset breakpoints (320, 640, 768, 1024, 1280, 1536)
Quality Control – Configurable image quality (1-100)
Worker Auto-Deploy – One-click Cloudflare Worker deployment for image processing
WooCommerce Support – Full integration with product images and galleries
Background Processing – Queue-based processing with WP Cron (Action Scheduler supported)
Media Library Integration – Status column, bulk actions, and row actions
WP-CLI Support – Command line interface for bulk operations and automation

Requirements

WordPress 6.0 or higher
PHP 8.0 or higher
Cloudflare account with R2 storage enabled
R2 bucket with public access or custom domain
Cloudflare API Token (for Worker deployment)

How It Works

Configure your R2 credentials (Account ID, Access Key, Secret Key, Bucket)
Set up your CDN URL (R2 public domain or custom domain)
Enable auto-offload or use bulk offload for existing media
Plugin automatically rewrites URLs to serve from CDN
Cloudflare Worker handles image transformations on-the-fly

Security

API credentials encrypted with AES-256-CBC + HMAC
Rate limiting on settings saves
Nonce verification on all AJAX requests
Capability checks for all admin operations
Secure uninstall (wipes all sensitive data)

Performance

Batch processing to prevent memory exhaustion
Transient caching for dashboard stats
Conditional asset loading
Background queue processing

Build and Generated Assets
This plugin includes compiled frontend assets in:

assets/js/admin.js and assets/js/public.js
assets/css/admin.css and assets/css/public.css

Source files are included in the same plugin package:

JavaScript source: assets/src/js/admin.js, assets/src/js/public.js
SCSS source: assets/src/scss/admin.scss, assets/src/scss/public.scss

Build steps used to generate compiled files:

npm install
npm run build

Development watch mode:

npm run dev

External services
This plugin connects to Cloudflare services to offload media and deliver files via CDN.
Cloudflare R2 Object Storage

What it is used for: Store and serve media objects.
Data sent: Account ID, Access Key ID, Secret Access Key, bucket name, file paths, and media file contents.
When data is sent: During connection testing, single/bulk offload, restore, and local-file cleanup actions.
Service provider: Cloudflare, Inc.
Terms of Service: https://www.cloudflare.com/website-terms/
Privacy Policy: https://www.cloudflare.com/privacypolicy/

Cloudflare API (Workers and DNS)

What it is used for: Deploy/remove Workers, validate DNS records, and enable DNS proxy for CDN routing.
Data sent: API token, account ID, zone ID, DNS record ID, worker configuration, and configured CDN domain.
When data is sent: When you click Deploy Worker, Remove Worker, Validate DNS, or Enable Proxy.
Service provider: Cloudflare, Inc.
Terms of Service: https://www.cloudflare.com/website-terms/
Privacy Policy: https://www.cloudflare.com/privacypolicy/

Privacy Policy
This plugin:
* Stores your Cloudflare API credentials encrypted in your WordPress database
* Uploads your media files to your Cloudflare R2 bucket
* Sends required API data directly to Cloudflare services to provide plugin functionality
* Does not include any tracking or analytics
Your data stays between your WordPress site and your Cloudflare account.
Support
For support, feature requests, or bug reports:
* Visit WordPress support forum
* Create an issue on GitHub (coming soon)
Credits

Built with AWS SDK for PHP for R2 compatibility
Uses WP Cron for background processing (Action Scheduler compatible)
Cloudflare Workers for image transformations

Disclaimer
This plugin is an independent, third-party project and is not affiliated with, endorsed by, or officially associated with Cloudflare, Inc. in any way. “Cloudflare” and “R2” are trademarks of Cloudflare, Inc. The use of these names is solely for descriptive purposes to indicate compatibility with Cloudflare services.
This plugin is developed and maintained independently by the plugin author and the open-source community.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon