前言介紹
- 這款 WordPress 外掛「WP REST Cache」是 2019-01-30 上架。
- 目前有 10000 個安裝啟用數。
- 上一次更新是 2025-04-11,距離現在已有 27 天。
- 外掛最低要求 WordPress 4.7 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.0 以上。
- 有 40 人給過評分。
- 論壇上目前有 4 個提問,問題解答率 100% ,不低,算是個很有心解決問題的開發者團隊了!
外掛協作開發者
acato | rockfire | yoeridekker |
外掛標籤
api | rest | cache | rest cache | wp-rest-api |
內容簡介
如果您在使用 WordPress REST API 時遇到速度問題,這個外掛將允許 WordPress 快取 REST API 的回應,使其更快。
此外掛提供以下功能:
快取所有預設的 WordPress REST API GET 端點。
快取(自訂)文章類型端點。
快取(自訂)分類法端點。
編輯其內容時自動清除快取。
手動刷新所有快取。
手動刷新特定快取。
計算使用次數。
指定快取的超時時間。
註冊自訂端點進行快取。
自動快取再產生。
透過 WordPress 安裝
造訪 ‘外掛 > 新增’(或如果您在多站點安裝上,造訪 ‘我的網站 > 管理網域 > 外掛 > 新增’)。
搜尋「WP REST Cache」。
透過 WordPress 的「外掛」選單啟用 WP REST Cache 外掛。
執行下列步驟。
手動安裝
將 wp-rest-cache 資料夾上傳到 /wp-content/plugins/ 目錄。
透過 WordPress 的「外掛」選單啟用 WP REST Cache 外掛。
執行下列步驟。
啟用後
造訪 ‘外掛 > 組件版面’ (或如果您在多站點安裝上,造訪 ‘我的網站 > 管理網域 > 外掛 > 組件版面’)。
檢查是否已有「WP REST Cache – Must-Use Plugin」,如果沒有,請將 WP REST Cache Plugin 中的 wp-rest-cache.php 檔案從 /sources 資料夾複製到 /wp-content/mu-plugins/ 資料夾中。
選項:
WP REST Cache 外掛所生成的快取的預設超時時間為 1 年。如果您想要更改:
造訪 ‘設定 > WP REST Cache’。
更改快取逾時時間。
原文外掛簡介
Are you facing speed issues, using the WordPress REST API? This plugin will allow WordPress to cache the responses of the REST API, making it much faster.
This plugin offers:
Caching of all default WordPress REST API GET-endpoints.
Caching of (custom) post type endpoints.
Caching of (custom) taxonomy endpoints.
Automated flushing of caches if (some of) its contents are edited.
Manual flushing of all caches.
Manual flushing of specific caches.
A counter how many times a cache has been retrieved.
Specifying after what time the cache should be timed out.
Registering custom endpoints for caching.
Automatic cache regeneration.
Installation from within WordPress
Visit ‘Plugins > Add New’ (or ‘My Sites > Network Admin > Plugins > Add New’ if you are on a multisite installation).
Search for ‘WP REST Cache’.
Activate the WP REST Cache plugin through the ‘Plugins’ menu in WordPress.
Go to “after activation” below.
Installation manually
Upload the wp-rest-cache folder to the /wp-content/plugins/ directory.
Activate the WP REST Cache plugin through the ‘Plugins’ menu in WordPress.
Go to “after activation” below.
After activation
Visit ‘Plugins > Must-Use’ (or ‘My Sites > Network Admin > Plugins > Must-Use’ if you are on a multisite installation).
Check if the ‘WP REST Cache – Must-Use Plugin’ is there, if not copy the file wp-rest-cache.php from the /sources folder of the WP REST Cache Plugin to the folder /wp-content/mu-plugins/.
Optionally:
The default timeout for caches generated by the WP REST Cache plugin is set to 1 year. If you want to change this:
Visit ‘Settings > WP REST Cache’.
Change the Cache timeout.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP REST Cache」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
trunk | 2019.1.2 | 2019.1.3 | 2019.1.4 | 2019.1.5 | 2019.1.6 | 2019.2.0 | 2019.2.1 | 2019.3.0 | 2019.4.0 | 2019.4.1 | 2019.4.2 | 2019.4.3 | 2019.4.4 | 2019.4.5 | 2020.1.0 | 2020.1.1 | 2020.2.0 | 2020.2.1 | 2020.2.2 | 2020.3.0 | 2020.3.1 | 2020.3.2 | 2021.1.0 | 2021.2.0 | 2021.2.1 | 2021.3.0 | 2021.4.0 | 2021.4.1 | 2022.1.0 | 2022.1.1 | 2022.1.2 | 2022.2.0 | 2022.2.1 | 2022.2.2 | 2023.1.0 | 2023.1.1 | 2023.2.0 | 2023.2.1 | 2024.1.0 | 2024.1.1 | 2024.1.2 | 2024.1.3 | 2024.2.0 | 2024.2.1 | 2024.2.2 | 2024.2.3 | 2024.3.0 | 2025.1.0 |
延伸相關外掛(你可能也想知道)
REST Cache 》這個 REST 快取採用基於檔案的快取系統,與其他類似的外掛相比,執行速度非常快,通常幾毫秒內即可提供記錄。, 你可以管理到期時間、手動清除記錄,並新增規...。