跳到内容

WP REST Cache

v2026.4.3

Acato · 2019年1月31日 上架

Enable caching of the WordPress REST API and auto-flush caches upon wp-admin editing.

正在使用
1 万+
评分
4.9 / 5
累计下载
43 万
最近更新
2026年11月23日
42 条评价需要 WordPress 4.7+已测试到 7.0.9PHP 7.0+

截图

Settings for the WP REST Cache plugin.
Settings for the WP REST Cache plugin.
An overview of cached endpoint calls.
An overview of cached endpoint calls.
An overview of cached single items.
An overview of cached single items.
Cache details page - Cache info.
Cache details page - Cache info.
Cache details page - Cache data.
Cache details page - Cache data.

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

  1. Visit ‘Plugins > Add New’ (or ‘My Sites > Network Admin > Plugins > Add New’ if you are on a multisite installation).
  2. Search for ‘WP REST Cache’.
  3. Activate the WP REST Cache plugin through the ‘Plugins’ menu in WordPress.
  4. Go to “after activation” below.

Installation manually

  1. Upload the wp-rest-cache folder to the /wp-content/plugins/ directory.
  2. Activate the WP REST Cache plugin through the ‘Plugins’ menu in WordPress.
  3. Go to “after activation” below.

After activation

  1. Visit ‘Plugins > Must-Use’ (or ‘My Sites > Network Admin > Plugins > Must-Use’ if you are on a multisite installation).
  2. 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:

  1. Visit ‘Settings > WP REST Cache’.
  2. Change the Cache timeout.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums