Title: Cache problem
Last modified: August 30, 2016

---

# Cache problem

 *  Resolved [barna](https://wordpress.org/support/users/barna/)
 * (@barna)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/cache-problem-14/)
 * Hi,
    I have a WordPress site, wich has 2 plugins. This one and “W3 Total Cache”
   plugin. When both plugins is on, sometimes is_mobile() and is_desktop() functions
   don’t work. When I open the site from desktop computer, I get the mobile version
   of webpage. And also, I get the dekstop version of page, when I open the site
   from my mobile. My guess is that, it’s a cache problem. After empty the cache
   it’s resolved. But I need to use a cache plugin, too.
 * Could you help to me in this?
    Thanks!
 * [https://wordpress.org/plugins/php-browser-detection/](https://wordpress.org/plugins/php-browser-detection/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * (@mindshare)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/cache-problem-14/#post-6187990)
 * This plugin isn’t setup to do anything special with any cache plugins so you 
   should probably ask about this issue on that plugin’s support forum.
 * You’ll likely want to wrap the browser check in some pre-cache code block because
   if it is cached it won’t work as expected, the is_mobile() function will just
   return the cached result not a real time one.

Viewing 1 replies (of 1 total)

The topic ‘Cache problem’ is closed to new replies.

 * ![](https://ps.w.org/php-browser-detection/assets/icon-256x256.png?rev=999338)
 * [PHP Browser Detection](https://wordpress.org/plugins/php-browser-detection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-browser-detection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-browser-detection/)
 * [Active Topics](https://wordpress.org/support/plugin/php-browser-detection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-browser-detection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-browser-detection/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/cache-problem-14/#post-6187990)
 * Status: resolved