Title: [Plugin: WP Super Cache] how to cache JSON
Last modified: August 20, 2016

---

# [Plugin: WP Super Cache] how to cache JSON

 *  [jiyel](https://wordpress.org/support/users/jiyel/)
 * (@jiyel)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-how-to-cache-json/)
 * Hello,
 * I’m using wp super cache and the plugin JSON API. I need to cache JSON feed because
   the Android app for my website access to posts in JSON and it is really slow 
   without caching.
 * For example, i need to cache all url beginning with : [http://www.mywebsite.com/api/](http://www.mywebsite.com/api/)
 * How could i do that with wp super cache ?
 * Thank you very much for your help. I can give you some money to debbug it if 
   necessary.
 * Best
 * [http://wordpress.org/extend/plugins/wp-super-cache/](http://wordpress.org/extend/plugins/wp-super-cache/)

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

 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-how-to-cache-json/#post-2475684)
 * The development version of the plugin will help. You need to tell the plugin 
   what closing tag to check for to make sure the page is complete. Use the “wp_cache_eof_tags”
   filter to add your html tag to it.
 *  Thread Starter [jiyel](https://wordpress.org/support/users/jiyel/)
 * (@jiyel)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-how-to-cache-json/#post-2475687)
 * Hello,
 * Thank you for you answer. But I don’t know how to do it. How can I use “wp_cache_eof_tags”
   filter” ? Do I have to switch to PHP or legacy caching mode (now I use mod rewrite
   rules) ?
 * Thank you again
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-how-to-cache-json/#post-2475730)
 * It’s a standard WordPress filter, so look for the string “wp_cache_eof_tags” 
   in wp-cache-phase2.php (I think) and usage should become obvious. Check the codex
   for docs on how to use filters if you’re not familiar with them.

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

The topic ‘[Plugin: WP Super Cache] how to cache JSON’ is closed to new replies.

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

 * 3 replies
 * 2 participants
 * Last reply from: [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-how-to-cache-json/#post-2475730)
 * Status: not resolved