WordPress.org

Support

Support » Plugins and Hacks » [Plugin: JSON API] w3 total cache & json api

[Plugin: JSON API] w3 total cache & json api

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did you get an answer on this? CDN url rewriting rules in w3 total cache are ignored by the json api as well. I’d love to see them working together nicely.

    Not by default in the plugin. The plugin only caches xml/html based pages. To support JSON data one needs to add and write a check for that in PageCache ob_callback. The use case has been noted however.

    I solved this, although it’s not a perfect solution, but it works for now

    I replaced if ($buffer != '' && w3_is_xml($buffer)) in PgCache.php with
    if ($buffer != '' && (w3_is_xml($buffer) || w3_is_json($buffer) || w3_is_jsonp($buffer)))

    The w3_is_json-stuff looks like this at the moment: https://gist.github.com/3349372

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: JSON API] w3 total cache & json api’ is closed to new replies.