Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Cache a Json feed with wp-super-cache on Wordpress WordPress

  • SOLVED

Hello,

I'm looking for a wordpress developer in order to modify my wp-super-cache plugin.

My problem is quite simple :
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/

The developer of wp-super-cache said me that I have to take the development version of the plugin and tell the plugin what closing tag to check for to make sure the page is complete :
http://wordpress.org/support/topic/plugin-wp-super-cache-how-to-cache-json?replies=4#post-2529305

So he advices me to use the "wp_cache_eof_tags" filter to add my html tag to it. For him, it's a standard WordPress filter.

But I don't know how to do that and I need some help.

Thank you very much

Answers (2)

2012-01-05

Julio Potier answers:

Hello i can do this for you, can you come on skype/gtalk ?
I'll code this and you'll try, we will find a way together ;)
Please bear with me :)


Julio Potier comments:

Skype: julio.boiteaweb
Gtalk: [email protected]


Julio Potier comments:

The new <strong>json-api/singletons/api.php</strong> : [[LINK href="http://pastebin.com/PMupwCf4"]]http://pastebin.com/PMupwCf4[[/LINK]]
The new <strong>json-api/singletons/response.php</strong> : [[LINK href="http://pastebin.com/B41LBM7V"]]http://pastebin.com/B41LBM7V[[/LINK]]

This is a plugin hack, there is no filter :/ I played with "ob_start" and stuff like that to make my own simple cache code.


Julio Potier comments:

Job done ! :)

2012-01-06

meshint answers:

Are you making a call to a JSON feed somewhere?

Can we see your code?