Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Chris Abraham

    (@cabraham)

    Anyone know about this?

    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.

    Thread Starter Chris Abraham

    (@cabraham)

    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.