Title: API Cache Pro
Author: Hubbard Labs
Published: <strong>2019(&#101;)k&#111; iraila&#114;&#101;&#110; 30(&#97;)</strong>
Last modified: 2022(&#101;)k&#111; apirila&#114;&#101;&#110; 18(&#97;)

---

Bilatu pluginak

Plugin hau **ez da probatu WordPressen azken 3 bertsio garrantzitsuenekin**. Baliteke,
jada, mantentze edo euskarririk ez izatea, eta, WordPressen bertsio berriagoekin
erabiltzen denean, bateragarritasun arazoak izan ditzake.

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

# API Cache Pro

 [Hubbard Labs](https://profiles.wordpress.org/hubbardlabs/)-(r)en eskutik

[Deskargatu](https://downloads.wordpress.org/plugin/api-cache-pro.zip)

 * [Xehetasunak](https://eu.wordpress.org/plugins/api-cache-pro/#description)
 * [Berrikuspenak](https://eu.wordpress.org/plugins/api-cache-pro/#reviews)
 *  [Instalazioa](https://eu.wordpress.org/plugins/api-cache-pro/#installation)
 * [Garapena](https://eu.wordpress.org/plugins/api-cache-pro/#developers)

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

## Deskripzioa

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** – Displays Cached, or Not Cached.
 * **X-API-CACHE-PRO-EXPIRES** – Displays the date/time the cache is set to expire.
 * **X-API-CACHE-PRO-EXPIRES-DIFF** – Displays the difference from current time 
   to the time cache is set to expire.
 * **X-API-CACHE-PRO-KEY** – 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
 `

## Instalazioa

 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

## MEG

FAQ Coming Soon!

## Berrikuspenak

Ez dago berrikuspenik plugin honentzat.

## Laguntzaileak eta Garatzaileak

“API Cache Pro” software librea da. Ondoko pertsonek egin dizkiote ekarpenak plugin
honi.

Laguntzaileak

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

[Itzul zaitez API Cache Pro zure hizkuntzara.](https://translate.wordpress.org/projects/wp-plugins/api-cache-pro)

### Garapena interesatzen zaizu?

[Araka kodea](https://plugins.trac.wordpress.org/browser/api-cache-pro/), begiratu
[SVN biltegia](https://plugins.svn.wordpress.org/api-cache-pro/) edo harpidetu [garapen erregistrora](https://plugins.trac.wordpress.org/log/api-cache-pro/)
[RSS](https://plugins.trac.wordpress.org/log/api-cache-pro/?limit=100&mode=stop_on_copy&format=rss)
bidez.

## Aldaketen loga

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

## Meta

 *  Version **0.0.4**
 *  Azken eguneraketa **duela 4 urte**
 *  Instalazio aktiboak **10 baino gutxiago**
 *  WordPress bertsioa ** 5.0 edo handiagoa **
 *  **5.2.24** (e)raino probatuta.
 *  PHP bertsioa ** 7.0 edo handiagoa **
 *  Language
 * [English (US)](https://wordpress.org/plugins/api-cache-pro/)
 * Etiketak
 * [api](https://eu.wordpress.org/plugins/tags/api/)[cache](https://eu.wordpress.org/plugins/tags/cache/)
 *  [Ikuspegi aurreratua](https://eu.wordpress.org/plugins/api-cache-pro/advanced/)

## Balorazioak

No reviews have been submitted yet.

[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/)

## Laguntzaileak

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

## Laguntza

Zerbait duzu esateko? Laguntza behar?

 [Ikusi laguntza foroa](https://wordpress.org/support/plugin/api-cache-pro/)

## Egizu eskaintza

Plugin honen aurrerabidearen euskarri izan nahi duzu?

 [ Egiozu eskaintza plugin honi ](https://hubbardlabs.com)