Title: skip_cache returns endpoint description instead of data
Last modified: July 24, 2019

---

# skip_cache returns endpoint description instead of data

 *  Resolved [waffl](https://wordpress.org/support/users/waffl/)
 * (@waffl)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/skip_cache-returns-odd-result/)
 * Hello, thank you for the amazing work on this plugin, I’m just having a small
   problem where I’m trying to call my API without the cached response for a staging
   site.
 * However, I’m running into a strange error where using this parameter causes the
   request to fail.
 * I have a custom endpoint, declared (for example) like so:
 *     ```
       add_action( 'rest_api_init', function () {
         register_rest_route( 'my_custom_example/v1', '/test_endpoint', array(
           'methods' => 'GET',
           'callback' => 'my_custom_test',
         ) );
       });
       ```
   
 * If i call the endpoint, `domain.com/wp-json/my_custom_example/v1/test_endpoint`,
   it works, but if I call `domain.com/wp-json/my_custom_example/v1/test_endpoint?
   skip_cache=1`, I get the following response:
 * >  {“namespace”:”my_custom_example\/v1″,”methods”:[“GET”],”endpoints”:[{“methods”:[“
   > GET”],”args”:[]}],”_links”:{“self”:”https:\/\/domain.com\/wp-json\/my_custom_example\/
   > v1\/test_endpoint”}}
 * Adding a `/` after between the URL and the param causes the regular cached data
   to return.
 * It seems like some sort of routing issue, but I’m not sure how to proceed.
    -  This topic was modified 6 years, 10 months ago by [waffl](https://wordpress.org/support/users/waffl/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [waffl](https://wordpress.org/support/users/waffl/)
 * (@waffl)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/skip_cache-returns-odd-result/#post-11763105)
 * Hm, actually flushing the cache completely seems to have made it work again, 
   I will report back in case the problem reappears.
 *  Thread Starter [waffl](https://wordpress.org/support/users/waffl/)
 * (@waffl)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/skip_cache-returns-odd-result/#post-11763146)
 * Ok, it’s back. For some reason, this keeps happening at some point and goes away
   once I click `Empty WP REST API Cache`
    -  This reply was modified 6 years, 10 months ago by [waffl](https://wordpress.org/support/users/waffl/).
 *  Thread Starter [waffl](https://wordpress.org/support/users/waffl/)
 * (@waffl)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/skip_cache-returns-odd-result/#post-11763553)
 * My sincere apologies, I’m actually using the confusingly similarly named but 
   different ‘WP REST API Cache’ Plugin which hasn’t been updated in some time.
 * I’ve actually moved to this plugin now and everything is working wonderfully!
    -  This reply was modified 6 years, 10 months ago by [waffl](https://wordpress.org/support/users/waffl/).
    -  This reply was modified 6 years, 10 months ago by [waffl](https://wordpress.org/support/users/waffl/).
 *  Plugin Author [Richard Korthuis](https://wordpress.org/support/users/rockfire/)
 * (@rockfire)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/skip_cache-returns-odd-result/#post-11800506)
 * Hi [@waffl](https://wordpress.org/support/users/waffl/)
 * No problem, the plugins are indeed named very similar. That is because it is 
   an obvious name for such a plugin 🙂
 * Very good to hear that moving to our plugin solved your issues! Please let us
   know if we can be of any assistance.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘skip_cache returns endpoint description instead of data’ is closed to
new replies.

 * ![](https://ps.w.org/wp-rest-cache/assets/icon-256x256.png?rev=3328849)
 * [WP REST Cache](https://wordpress.org/plugins/wp-rest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rest-cache/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)

 * 4 replies
 * 2 participants
 * Last reply from: [Richard Korthuis](https://wordpress.org/support/users/rockfire/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/skip_cache-returns-odd-result/#post-11800506)
 * Status: resolved