WordPress.org

Support

Support » Plugins and Hacks » WP Super Cache » [Plugin: WP Super Cache] do not cache iPad

[Plugin: WP Super Cache] do not cache iPad

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anyone know about this?

    Plugin Author Donncha O Caoimh

    @donncha

    Enable PHP mode and you’ll have to write a small wp-super-cache plugin that fires off the “cache_init” cacheaction in wp-cache-phase1.php. If you see an iPad visitor then set the variable $cache_enabled to false.

    Excellent. Thanks Donncha. That works great. Here’s the code for those interested:

    function mycache_init() {
      global $cache_enabled;
    
      $isiPad = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPad');
      if ($isiPad)
        $cache_enabled = false;
    
    }
    
    add_cacheaction('cache_init', 'mycache_init');
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP Super Cache] do not cache iPad’ is closed to new replies.
Skip to toolbar