Use Bunny DNS

外掛說明

In May 2022 Bunny.net introduced a new service called Bunny DNS which is currently still in Beta, but available for testing on invitation.

Use Bunny DNS plugin allows for smooth integration with Bunny DNS product. When integrating WordPress site with Bunny DNS where proxy is enabled, you may want to purge the CDN cache on different content updates to allow for new content reaching out your target audience as soon as possible.

When installing and enabling this plugin, your CDN pull zone will be automatically purged anytime the content on your site is updated.

安裝方式

  1. Upload the contents of this .zip file into ‘/wp-content/plugins/use-bunny-dns’ on your WordPress installation, or via the ‘Plugins->Add New’ option in the WordPress dashboard.
  2. Activate the plugin via the ‘Plugins’ option in the WordPress dashboard.
  3. Once activated, there needs to be defined mandatory constants via settings page or added via wp-config.php:
    • BUNNY_PULL_ZONE_ID (required) – ID of the pull zone site is being served through
    • BUNNY_API_KEY (required) – API key for secure communication with Bunny API, allowing to interact with the cache programatically
    • BUNNY_ENABLE_LOG (optional) – when set to true, there’s created file called cdn-purge.log in plugin’s directory allowing to check its correct functionality

使用者評論

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

參與者及開發者

以下人員參與了開源軟體〈Use Bunny DNS〉的開發相關工作。

參與者

將〈Use Bunny DNS〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

2.1.0

  • Allowing to purge whole zone from the plugin itself
  • Updating options page

2.0.0

  • Introducing plugin admin screen for easier setup with fallback to wp-config.php constants

1.1.1

  • Fixing small bug in wpController

1.1.0

  • Extend API call timeout from 5s to 10s
  • Introducing CDN-Tag header to all dynamic requests allowin to purge tagged requests only

1.0.0

  • First stable release of the plugin