[WordPress] 外掛分享: Sunny

首頁外掛目錄 › Sunny
WordPress 外掛 Sunny 的封面圖片
100+
安裝啟用
★★★★
4.2/5 分(23 則評價)
2992 天前
最後更新
問題解決
WordPress 4.7+ PHP 7.0.0+ v2.5.0 上架:2014-07-15

內容簡介

這個外掛可以自動清除 Cloudflare 快取,包括所有的快取規則。

警告!!!

這個外掛不是給一般使用者的!在安裝前請仔細閱讀整個說明文件和常見問題。

Cloudflare 的所有快取規則會破壞大部分 WordPress 的動態功能:

WordPress Nonces 會被快取
除非使用 USD $ 200 的 Cloudflare 方案,否則表單必須透過 AJAX 載入。 了解更多

Sunny 在 WordPress 管理員儀表板中顯示一些提醒,推廣作者的網站開發服務,每 2 周顯示一次。你可以透過右上角的 X 按鈕進行消除。這是一個免費的外掛,免費的價格和自由。你可以在不破壞 Sunny 其他部分的情況下隨時移除這些提醒。

Sunny 的下一個主要版本 (v3.0.0) 將要求:

PHP 7.1
WordPress 4.9
正常運作的 WP Cron

功能

自動清除 Cloudflare 的 cache everything 快取規則的快取
使用最新的 Cloudflare API v4
支援自訂的文章類型
從公眾介面隱藏管理工具列
支援 WP REST API
可擴展的 Laravel-like 容器

偵錯工具

進入 Sunny –> Debuggers,顯示:

給出一個特定文章相關的 URL 以清除快取
顯示總是需要清除快取的目標 URL
給定 URL 的 Cache Status

Sunny 與 Cloudflare 官方外掛的不同之處在哪裡?

在撰寫本文時,Cloudflare 官方外掛不會清除 cache everything 快取規則的快取。這就是 Sunny 的用處! Sunny 專注於在需要時清除快取。

相容性

與 Cloudflare 的 官方外掛相容
與 WP Cloudflare Guard(自動創建防禦危險 IP 的防火牆規則)相容

需要注意的事項

你需要 PHP 7.0 或更高版本
你需要 WordPress 4.7 或更高版本
你需要一個 Cloudflare 帳戶(免費方案也可以)
本外掛不是由 Cloudflare, Inc 提供的

如果你喜歡這個外掛,可以自由地評分或捐贈。非常感謝!🙂

支援

為了節省時間,方便開發,請先閱讀外掛的常見問題。在請求支援之前,請確保已經更新至 Sunny 和 WordPress 的最新版本並安裝了 PHP 7 或更高版本。

你可以透過GitHub 的問題回報取得支援(建議)及Word

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.5.0) 或搜尋安裝

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

原文外掛簡介

Automatically purge Cloudflare cache, including cache everything rules.
Warning!!!
This plugin is not for normal users! Read the whole readme and FAQ before installing.
Cloudflare cache everything rules breaks most WordPress dynamic functionalities:

WordPress Nonces will be cached
Forms must be loaded via AJAX unless you’re using the USD$ 200 Cloudflare plan. Learn more

Sunny shows a few admin notices in WP admin dashboard promoting the author’s web development services every 2 weeks.They are dismissible via the X button on the right corner. See faq for more info.This is a free plugin, free as in free of charge and in freedom. You can always remove those notices without breaking other parts of Sunny.
The next major release of Sunny(v3.0.0) will require:

PHP 7.1
WordPress 4.9
Properly working WP Cron

Features

Automatically purge Cloudflare cache everything rules’ caches
Use the latest Cloudflare API v4
Support custom post type
Hide admin bar from public-facing pages
WP REST API support
Extendable Laravel-like container

Debuggers
Go Sunny –> Debuggers, it shows:

All related urls to be purged for a given post
Show targeted urls which always be purged
Cache Status of a given URL

How does Sunny different from Cloudflare’s official plugin?
At the time of writing, Cloudflare’s official plugin doesn’t purge cache everything rules’ caches. Here comes Sunny! Sunny focus on purging caches when needed.
Compatibility

Works with Cloudflare’s official plugin
Works with WP Cloudflare Guard (Automatically create firewall rules to block dangerous IPs.)

Things You Need to Know

You need PHP 7.0 or later
You need WordPress 4.7 or later
You need a Cloudflare account (free plan is okay)
This plugin was not built by Cloudflare, Inc

If you like the plugin, feel free to rate it or donate. Thanks a lot! 🙂

Support
To save time so that we can spend it on development, please read the plugin’s FAQ first. Before requesting support, and ensure that you have updated Sunny and WordPress to the latest released version and installed PHP 7 or later.
You can get support via GitHub issues(preferred) and WordPress support forum.
If you don’t provide these information, your support ticket will be ignored:

PHP version number (if you say latest, your ticket will be closed without replies)
WordPress version number
Sunny version number
What is the current behavior
What is the expected or desired behavior
Step to reproduce current behavior
Does it behave the same when Sunny is disabled
Does it behave the same when only Sunny is enabled
What have you tried to resolve the issue

For Developers
Sunny is open source and hosted on GitHub. Feel free to make pull requests.
You can also tweak Sunny to work for you by extending its Laravel-like container.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon