WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP Super Cache] how to cache JSON

[Plugin: WP Super Cache] how to cache JSON

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Donncha O Caoimh

    @donncha

    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.

    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

    @donncha

    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.