[WordPress] 外掛分享: Local Gravatars

首頁外掛目錄 › Local Gravatars
20+
安裝啟用
★★★★★
5/5 分(1 則評價)
134 天前
最後更新
問題解決
WordPress 5.3+ PHP 5.6+ v1.1.3 上架:2020-10-06

內容簡介

讓您的使用者可以使用 Gravatar,同時保護隱私。

這個外掛會先取得使用者的 Gravatar,然後將它們儲存在您的網站中。
您的訪客會直接從您的網站取得 Gravatar,而不是從 Gravatar 的 CDN,從而提高隱私和效能。

為了避免檔案過多,同時讓 Gravatar 常更新,檔案會每週清除一次 (您可以透過篩選器調整清除間隔)。
為了避免伺服器效能問題,下載 Gravatar 的時間會被限制在最多 5 秒 (您可以透過篩選器調整)。

程式碼簡潔易讀、文件齊全,同時包含多項篩選器,讓您可以自由調整功能:

更改下載 Gravatar 的資料夾位置。
更改已下載 Gravatar 的 URL。
更改清除頻率。
更改最大處理時間以避免效能問題。
更改後備圖片 (預設為空白),同時允許使用遠端 URL (但這會違背此加強隱私的目的,因此不建議使用)。

開發者團隊

⬇ 下載最新版 (v1.1.3) 或搜尋安裝

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

原文外掛簡介

Allow your users to use gravatars, but without sacrificing privacy.
The plugin will get your users gravatars and host them locally on your website.
Your visitors will get the gravatars directly from your website instead of the gravatar CDN, therefore increasing privacy and performance.
To avoid cluttering the filesystem and to allow refreshing gravatars, the files get flushed on a weekly basis (interval can be modified using a filter).
To avoid performance issues server-side, the download process for gravatars is limited to a maximum of 5 seconds (value can be modified using a filter).
The code is simple, easy to read, well-documented and includes filters you can use to modify the behavior of the plugin:

Changing the folder where gravatars get downloaded.
Change the URL of downloaded gravatars.
Change the cleanup frequency.
Change the maximum process time to avoid performance issues.
Change the fallback image to use (defaults to blank) – also allows using the remote URL (not recommended as it will defeat the purpose of this privacy enhancement).

延伸相關外掛

文章
Filter
Mastodon