WP REST Cache

Por Acato
(40 avaliações)
Baixar
  • Versão:
    2025.1.0
  • Última atualização:
    há 28 dias
  • Instalações ativas:
    mais de 10 mil
  • Versão do WordPress:
    4.7 ou maior
  • Testado até o WordPress:
    6.7.2
  • Versão do PHP:
    7.0 ou maior

Hospedagem WordPress com plugin WP REST Cache

Onde posso hospedar o plugin WP REST Cache?

Este plugin pode ser hospedado em qualquer provedor que possua WordPress instalado. Recomendamos escolher uma empresa de hospedagem de confiança, com servidores especializados para WordPress, como o serviço de hospedagem da MCO2.

Hospedando o plugin WP REST Cache em uma empresa de hospedagem de confiança

A MCO2, além de instalar o WordPress na versão mais atualizada para seus clientes, disponibiliza o WP SafePress, um sistema singular que assegura e otimiza seu site ao mesmo tempo.

Por que a Hospedagem WordPress funciona melhor na MCO2?

A Hospedagem WordPress funciona melhor pois a MCO2 possui servidores otimizados para WordPress. A instalação de WordPress é diferente de uma instalação trivial, pois habilita imediatamente recursos como otimização automática de imagens e fotos, proteção da página de login, bloqueio de atividades suspeitas diretamente no firewall, cache avançado e HTTPS ativado por padrão. São plugins que potencializam seu WordPress para a máxima segurança e o máximo desempenho.

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

  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.

Capturas de tela

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.