Title: API Cache Pro
Author: Hubbard Labs
Published: <strong>Ọwẹ́wẹ̀  30, 2019</strong>
Last modified: Igbe 18, 2022

---

Ṣàwárí àwọn plugin

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

![](https://s.w.org/plugins/geopattern-icon/api-cache-pro.svg)

# API Cache Pro

 Láti ọwọ́ [Hubbard Labs](https://profiles.wordpress.org/hubbardlabs/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/api-cache-pro.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/api-cache-pro/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/api-cache-pro/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/api-cache-pro/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/api-cache-pro/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/api-cache-pro/)

## Àpèjúwe

This plugin enables caching for the WordPress REST API to improve performance. Once
enabled you can modify the basic settings via the Customizer.

#### Customizer Options:

 * Disable Cache (Default: Disabled)
 * Set Default Cache Timeout (Default: 300)

### Request Headers

Several Headers are added to all the API Requests. This plugin will also modify 
the Cache-Control header as well. Here is an example of the available custom headers.

    ```
    X-API-CACHE-PRO: Cached
    X-API-CACHE-PRO-EXPIRES: January 20, 2019, 12:39 AM UTC
    X-API-CACHE-PRO-EXPIRES-DIFF: 5 mins
    X-API-CACHE-PRO-KEY: api_cache_pro_78be25416f69cd3a885dcf14017a0691
    ```

 * **X-API-CACHE-PRO** Ìtumọ̀ Yorùbá: – Displays Cached, or Not Cached.
 * **X-API-CACHE-PRO-EXPIRES** Ìtumọ̀ Yorùbá: – Displays the date/time the cache
   is set to expire.
 * **X-API-CACHE-PRO-EXPIRES-DIFF** Ìtumọ̀ Yorùbá: – Displays the difference from
   current time to the time cache is set to expire.
 * **X-API-CACHE-PRO-KEY** Ìtumọ̀ Yorùbá: – Displays the key used for the cache.

This plugin offers several filters so you can disable these headers:

 Filter
 Type Default

 `api_cache_pro_header`
 boolean true

 `api_cache_pro_key_header`
 boolean true

 `api_cache_pro_expires_header`
 boolean true

 `api_cache_pro_expires_diff_header`
 boolean true

 `api_cache_pro_control_header`
 boolean true

 `api_cache_pro_max_age`
 integer Default Timeout or 300 (5 Minutes)

 `api_cache_pro_s_max_age`
 integer Default Timeout or 300 (5 Minutes)

You can use these filters to disable any of the headers. Here is an example to disable
the Key Header.

    ```
    /**
     * Disable API Cache Pro Key Header.
     *
     * @access public
     */
    function disable_api_cache_pro_key_header() {
        return false;
    }
    add_action( 'api_cache_pro_key_header', 'disable_api_cache_pro_key_header' );
    ```

### Clearing Cache

The cache will automatically get cleared if you do any of the following:

 * Disable the Cache
 * Update the Default Cache Timeout Length
 * Update any post, page or custom post type.
 * Deactivate or Uninstall the plugin

You can skip that cache by adding the following param to any request:

    ```
    `cache=disabled<pre><h3>WP-CLI Support</h3>
    ```

_API Cache Pro_ offers wp-cli support to clear cache with the following command:

wp api-cache-pro delete
 `

## Ìgbéwọlẹ̀

 1. Copy the `api-cache-pro` folder into your `wp-content/plugins` folder
 2. Activate the `API Cache Pro` plugin via the plugin admin page

## FAQ

FAQ Coming Soon!

## Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

## Àwọn Olùkópa & Olùgbéejáde

“API Cache Pro” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa
sí plugin yìí.

Àwọn Olùkópa

 *   [ Hubbard Labs ](https://profiles.wordpress.org/hubbardlabs/)
 *   [ Brandon Hubbard ](https://profiles.wordpress.org/bhubbard/)

[Túmọ̀ “API Cache Pro” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/api-cache-pro)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/api-cache-pro/), ṣàyẹ̀wò
[ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/api-cache-pro/), tàbí ṣe àgbékalẹ̀
sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/api-cache-pro/) 
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/api-cache-pro/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

Please see [CHANGELOG.MD](https://yor.wordpress.org/plugins/api-cache-pro/CHANGELOG.md?output_format=md)

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **0.0.4**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 4 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **Tó kéré sí 10**
 *  Ẹ̀yà WordPress ** 5.0 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **5.2.24**
 *  Ẹ̀yà PHP ** 7.0 tàbí ju bẹ́ẹ̀ lọ **
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/api-cache-pro/)
 * Àwọn àmì
 * [api](https://yor.wordpress.org/plugins/tags/api/)[cache](https://yor.wordpress.org/plugins/tags/cache/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/api-cache-pro/advanced/)

## Àwọn ìbò

Kò sí ìwádìí tí a tíì fi ránṣẹ́.

[Your review](https://wordpress.org/support/plugin/api-cache-pro/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/api-cache-pro/reviews/)

## Àwọn Olùkópa

 *   [ Hubbard Labs ](https://profiles.wordpress.org/hubbardlabs/)
 *   [ Brandon Hubbard ](https://profiles.wordpress.org/bhubbard/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/api-cache-pro/)

## Ṣe ìtọrẹ

Ṣé o fẹ́ ṣe àtìlẹ́yìn fún ìlọsíwájú plugin yìí?

 [ Ṣe ìtọrẹ sí plugin yìí ](https://hubbardlabs.com)