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

Purge Cache for CloudFlare

描述

Plugin homepage | Plugin author | Premium Version | Donate

Purge Cache for CloudFlare is a simple plugin that uses CloudFlare® API to purge cache of full HTML pages when a new post is made.

This free version is only indended for basic usage. If you want to use it in full capacity, consider buying premium version.

It works by purging front page, post’s page, and main RSS feed. This should work for most sites. However, there are of filters, actions, and methods that provide full customizability and extensibility.

Note that this plugin also sets cache to 30 minutes for all frontend pages. This means that if you use default option in CloudFlare, it tells them to revalidate page cache after that time, so it means that cache for any page expires on CloudFlare servers after that time.

You can change this limits by using filters from you code. If you want user interface in your admin, use premium version.

You should create new CloudFlare page rules to set proper caching. It is your responsibility to set this properly.

First page rule should exclude certain paths from caching. Recommended value for this is wp-. This excludes admin pages and default .php pages. Example of URL pattern: *example.com/*wp-* This value can also set via filter or via admin in premium version.

Second page rule should sets caching. You need to set “Custom caching” to “Cache everything”. Recommended value for “Edge cache expire TTL” is default, “Respect all existing headers” which means that CloudFlare revalidates after 30 minutes, while for “Browser cache expire TTL” is also 30 minutes. Example of URL pattern: *example.com/*

This plugin is on GitHub too.

Purge Cache for CloudFlare is in no way affiliated with CloudFlare. It is only using CloudFlare API to purge page cache of certain URLs.
CloudFlare is registered trademark of CloudFlare, Inc.

螢幕截圖

  • Purge Cache for CloudFlare settings

評價

There are no reviews for this plugin.

貢獻者及開發者

“Purge Cache for CloudFlare” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

Purge Cache for CloudFlare 外掛目前已有 1 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 Purge Cache for CloudFlare 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.2

  • Released on 6th May 2016
  • Don’t cache requests for search
  • Minor cleanup

1.1

  • Released on 15th December 2015
  • Sync WP_Temporary with WordPress 4.4

1.0

  • Released on 4th November 2015
  • Initial release.