這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Purge Cloud Flare

外掛說明

It clears whole CloudFlare cache for desired domain.
Purge is done from WordPress admin panel or plugin’s page. Current version contains functionality which purges individual files by URL and clears CloudFlare cache after Save Post action.

THINGS YOU NEED TO KNOW:

  • Whenever you get error clearing the cache alert popup appears with CloudFlare Api response.
  • This version allows you to purge whole CF cache and specific files by their urs.
  • Clear cached files to force Cloudflare to fetch a fresh version of those files from your web server. You can purge files selectively or all at once.
  • Purging the cache may temporarily degrade performance for your website.

螢幕擷圖

  • Plugin blank settings
  • Plugin settings filled with purge button
  • CloudFlare cache being cleared with API key setting unveiled
  • Error notification popup
  • Settings page with successful purge status
  • Purge individual files modal

安裝方式

  1. Upload the plugin plugin to your blog.
  2. Activate it.
  3. Go to Dashboard->CF Purger (or directly to this URL: “http://your-wordpress-site.com/wp-admin/admin.php?page=cf-purger”) and enter following fields:
    • CloudFlare Email Address
    • CloudFlare API Token (you can find it in your CloudFlare Account ) previously logged in to CloudFlare
    • Zone ID – required to specify the domain clear cache for
  4. Press “Save Changes” button
  5. Be happy! 🙂

常見問題集

Notice tells “CloudFlare cache clear attempt was done”. How can I understand if autopurge is successful?

Good question. This notice doesn’t guarantee the cache wa successfully purged. Next major version of the plugin will contain that functionality if needed.

How can I clear particular files?

Hover over Purge button in right top corner on WordPress admin bar and click “Specific Files”. You will see modal (screenshot 6). Enter files in appeared form, press “purge Individual Files” button. Be happy =)

I have cleared cache, but no changes on my frontend. Why?

If no error message has appeared – wait for 30 seconds more. It must have successfully purged all assets. Please allow up to 30 seconds for changes to take effect.

I want to clear specific Cache Tag. How can I do it

This feature is available for Enterprise CloudFlare accounts only. It’s not developed so far.

使用者評論

2017 年 2 月 8 日
A simple and direct plugin that allows us to program CloudFlare to cache ALL of our content. That means that our site is delivered at lightning speed without even hitting our servers... our servers can be shutdown and the site still works! This plugin allows our content editors to update content and have CloudFlare update on the next hit. Support from the developer when a problem was found resulted in a hotfix within hours - great stuff, thanks.
2017 年 1 月 13 日
Nice plugin btw. I like your modal. And I wish that there was option to purge CF cache automatically when new post/page is updated/created
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Purge Cloud Flare〉的開發相關工作。

參與者

將 Purge Cloud Flare 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.6

  • important bugfix: when your WordPress was installed to subfolder – ajax call might have not worked

1.5.2

  • bugfix when adding a new menu and atoclear cache option is enabled

1.5.1

  • Small bugfixes and adjustments with style.css and script.js

1.5

  • Autopurge option is added. You now can clear whole CloudFlare cache after post is updated/saved/created

1.4.1

  • Small improvement with js

1.4

  • Purge individual files feature is added

1.3

  • Domain is replaced with Zone ID

1.2

  • script.js is bugbixed. uprgade emmediatelly

1.1

  • plugin is migrated to CloudFlare API v4

1.0.1

  • Styles are added for admin bar.
  • Menu name is renamed to Purge Cloud Flare

1.0

  • Initial plugin release