[WordPress] 外掛分享: WP REST Cache

首頁外掛目錄 › WP REST Cache
WordPress 外掛 WP REST Cache 的封面圖片
10,000+
安裝啟用
★★★★
4.9/5 分(42 則評價)
14 天前
最後更新
100%
問題解決
WordPress 4.7+ PHP 7.0+ v2026.1.3 上架:2019-01-30

內容簡介

WP REST Cache 可快取 WordPress REST API 的回應結果,大幅提升 API 回應速度。支援自動與手動清除快取,並可自訂快取逾時時間,適合有 REST API 效能需求的網站使用。

【主要功能】
• 快取所有預設 WordPress REST API 的 GET 端點
• 支援自訂文章類型與自訂分類法端點快取
• 內容編輯時自動清除相關快取
• 可手動清除全部或特定快取
• 可設定快取逾時時間
• 支援註冊自訂端點進行快取

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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.

WP REST Cache Pro
For more advanced features, check out our WP REST Cache Pro plugin:

Configure custom endpoints for caching through the wp-admin interface.
Configure relationships within endpoints.
No coding required.

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.

延伸相關外掛

文章
Filter
Mastodon