MariCDN by MariHost

外掛說明

MariCDN by MariHost is a simple yet powerful plugin that connects your WordPress site to the MariCDN platform — a performance-focused content delivery network (CDN) built and backed by MariHost.

With just a few clicks, you can rewrite your site’s static asset URLs to serve them via our high-speed CDN infrastructure, dramatically improving site speed and load times for your visitors around the world.

Key Features

  • One-click integration with your MariCDN pull zone
  • Automatic URL rewriting for static assets (CSS, JS, images, fonts)
  • Optional test mode to preview before going live
  • One-click cache purging for changes
  • Custom file type and directory control
  • HTTPS support and CDN domain flexibility
  • Clean, minimal and optimized code

How It Works

After configuring your CDN URL, the plugin will automatically update asset links across your site to use the CDN instead of your server. It also provides a convenient interface for purging cache and testing integration.

Requirements

  • PHP >= 7.2
  • WordPress >= 5.0
  • An active MariCDN account with at least one pull zone created

About MariHost

MariHost is a premium hosting provider offering high-performance solutions including web hosting, CDN, cloud services, and more.

External Services

This plugin connects to the MariCDN API provided by MariHost to automate cache purging and validation functionality.

  • Service used: MariCDN API (https://automate.maricdn.com)
  • Purpose: To allow one-click CDN cache purging and verify zone configuration.
  • Data sent:
    • zoneid (your CDN zone identifier)
    • webid (plugin validation token – no user info)
  • When: Only during cache purging or settings validation.
  • Terms of Service: https://maricdn.com/terms-and-conditions
  • Privacy Policy: https://maricdn.com/privacy-policy

This connection is required for full plugin functionality. No personal user data is transmitted or stored.

螢幕擷圖

  • MariCDN settings panel with configuration options

安裝方式

  1. Upload the maricdn folder to /wp-content/plugins/
  2. Activate the plugin from the WordPress dashboard
  3. Go to Settings > MariCDN
  4. Enter your MariCDN domain (e.g. https://yourcdndomain.maricdn.com)
  5. Enable Test Mode to preview changes
  6. Save settings and inspect site assets
  7. Disable Test Mode to go live

常見問題集

Do I need a MariCDN account?

Yes. You need a valid MariCDN account and pull zone to use the plugin.

What directories are optimized?

By default, wp-content and wp-includes are rewritten to use the CDN.

Are PHP files included?

No. PHP files are excluded for security. You can configure other file types in the settings.

Is it compatible with caching plugins?

Yes, MariCDN works alongside popular caching solutions. It only rewrites asset URLs.

Can I purge the CDN cache?

Yes, there’s a “Clear CDN Cache” button in the settings to instantly purge your MariCDN cache.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈MariCDN by MariHost〉的開發相關工作。

參與者

將〈MariCDN by MariHost〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.1 – 17 May 2025

  • Minor bug fixes and improvements

1.0.0 – 9 May 2025

  • Initial release