Title: Disable caching for a specific theme function
Last modified: December 21, 2019

---

# Disable caching for a specific theme function

 *  [lewdpotato](https://wordpress.org/support/users/lewdpotato/)
 * (@lewdpotato)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/disable-caching-for-a-specific-theme-function/)
 * Hi guys my issue is quite simple, my theme use a function to detect if you are
   using a mobile browser or desktop one, on a page this function is called to change
   the reader, to an optimezed version depending on what it detects, but if I use
   WP-Super Cache, after 1 user that cached the page as mobile user, all the other
   users that access it even on desktop, it will serve them the mobile version, 
   and vice versa.
    So it’s possible to disable it? The function is this one: is_mobile_browser
   It’s called in a specific dinamic page, that influnces 6000+ post on my website..

The topic ‘Disable caching for a specific theme function’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [lewdpotato](https://wordpress.org/support/users/lewdpotato/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/disable-caching-for-a-specific-theme-function/)
 * Status: not resolved