Title: API Cache Pro
Author: Hubbard Labs
Published: <strong>ستمبر 30, 2019</strong>
Last modified: اپریل 18, 2022

---

پلگ انز تلاش کریں

یہ پلگ ان **ورڈپریس کے تازہ ترین 3 ریلیزوں کے ساتھ ٹیسٹ نہیں کیا گیا ہے**۔ اب یہ
برقرار نہیں رکھا جا سکتا یا معاونت نہیں کی جا سکتی اور اس کو ورڈپریس کے تازہ ترین
ورژنز کے ساتھ استعمال کیے جانے پر مطابقت کے مسائل ہو سکتے ہیں۔

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

# API Cache Pro

 منجانب [Hubbard Labs](https://profiles.wordpress.org/hubbardlabs/)

[ڈاؤن لوڈ کریں](https://downloads.wordpress.org/plugin/api-cache-pro.zip)

 * [تفصیلات](https://ur.wordpress.org/plugins/api-cache-pro/#description)
 * [جائزے](https://ur.wordpress.org/plugins/api-cache-pro/#reviews)
 *  [انسٹالیشن](https://ur.wordpress.org/plugins/api-cache-pro/#installation)
 * [ڈیولپمنٹ](https://ur.wordpress.org/plugins/api-cache-pro/#developers)

 [معاونت](https://wordpress.org/support/plugin/api-cache-pro/)

## تفصیل

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
 `

## انسٹالیشن

 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 Coming Soon!

## جائزے

There are no reviews for this plugin.

## شراکت دار اور ڈیویلپرز

“API Cache Pro” اوپن سورس سافٹ ویئر ہے۔ مندرجہ ذیل لوگوں نے اس پلگ ان میں حصہ لیا:

شراکت دار

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

[“API Cache Pro” کا اپنی زبان میں ترجمہ کریں۔](https://translate.wordpress.org/projects/wp-plugins/api-cache-pro)

### ڈویلپمینٹ میں دلچسپی ہے؟

[کوڈ براؤز کریں](https://plugins.trac.wordpress.org/browser/api-cache-pro/)، [ایس این وی ریپوزیٹری](https://plugins.svn.wordpress.org/api-cache-pro/)
کو چیک کریں یا [ڈویلپمینٹ لاگ](https://plugins.trac.wordpress.org/log/api-cache-pro/)
کو سبسکرائب کریں بذریعہ [آر ایس ایس](https://plugins.trac.wordpress.org/log/api-cache-pro/?limit=100&mode=stop_on_copy&format=rss)۔

## چینج لاگ

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

## میٹا

 *  Version **0.0.4**
 *  Last updated **4 سال پہلے**
 *  Active installations **10 سے کم**
 *  WordPress version ** 5.0 یا اس سے جدید **
 *  Tested up to **5.2.24**
 *  PHP version ** 7.0 یا اس سے جدید **
 *  Language
 * [English (US)](https://wordpress.org/plugins/api-cache-pro/)
 * Tags
 * [api](https://ur.wordpress.org/plugins/tags/api/)[cache](https://ur.wordpress.org/plugins/tags/cache/)
 *  [اعلی درجے کا منظر](https://ur.wordpress.org/plugins/api-cache-pro/advanced/)

## درجہ بندیاں

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

## شراکت دار

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

## معاونت

کچھ کہنا ہے؟ مدد چاہیے؟

 [معاونتی فورم دیکھیں](https://wordpress.org/support/plugin/api-cache-pro/)

## عطیہ دیں

کیا آپ اس پلگ ان کی ترقی میں معاونت کرنا چاہتے ہیں؟

 [ اس پلگ ان کو عطیہ دیں ](https://hubbardlabs.com)