Title: [Plugin: WP Super Cache] do not cache iPad
Last modified: August 20, 2016

---

# [Plugin: WP Super Cache] do not cache iPad

 *  [Chris Abraham](https://wordpress.org/support/users/cabraham/)
 * (@cabraham)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-do-not-cache-ipad/)
 * Does anyone know how to get wp-super-cache to avoid serving a cached file to 
   just an iPad? That is, I want WordPress to generate the theme each request for
   the iPad. I tried playing around with the cached_mobile_browsers filter but it
   doesn’t seem to be quite what I need.
 * [http://wordpress.org/extend/plugins/wp-super-cache/](http://wordpress.org/extend/plugins/wp-super-cache/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Chris Abraham](https://wordpress.org/support/users/cabraham/)
 * (@cabraham)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-do-not-cache-ipad/#post-2615000)
 * Anyone know about this?
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-do-not-cache-ipad/#post-2615021)
 * 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](https://wordpress.org/support/users/cabraham/)
 * (@cabraham)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-do-not-cache-ipad/#post-2615025)
 * 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.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Chris Abraham](https://wordpress.org/support/users/cabraham/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-do-not-cache-ipad/#post-2615025)
 * Status: not resolved