<font face="verdana,sans-serif">Hi,<br><br>I am creating Desktop &amp; Mobile site using Drupal 7. I have same domain + URL for desktop &amp; mobile site. I am using Browscap for device deteciton and based on device i am switching theme using hook_custom_theme. This creates problem if i enable page cache. <br>
<br>Note from Readme.txt file of mobile tools module says <br><br>CACHING<br>=======<br>Device detection and redirection works fine when caching is enabled. However if you choose to do theme switching based on device, caching will bypass the theme switching and get your pages out of cache:<br>
e.g.: First user visits the site with his iphone and gets the iphone theme. The theme get&#39;s stored in cache, but the second user with a simple feature phone will also get the iphone theme.<br>Solution: Open the mobile_tools_cache.inc file and read the documentation!<br>
<br>Documentation from mobile_tools_cache.inc file says <br><br>/**<br> * @file mobile_tools_cache.inc<br> *  This files allow to override the default drupal cache in order to support theme switching based<br> *  on device type and device group.<br>
 *<br> *  In order to enable this file, add the following to your settings.php file<br> *  $conf[&#39;page_cache_fastpath&#39;] = FALSE,<br> *  $conf[&#39;cache_inc&#39;] = &#39;./sites/all/modules/mobile_tools/mobile_tools_cache.inc&#39;,<br>
 * );<br> *<br> */<br><br>This doesn&#39;t work. Even the syntax is incorrect. Its like <br></font><font face="verdana,sans-serif">$conf[&#39;page_cache_fastpath&#39;] = FALSE,</font> <font face="verdana,sans-serif">$conf[&#39;cache_inc&#39;] = &#39;./sites/all/modules/mobile_tools/mobile_tools_cache.inc&#39;,</font> <font face="verdana,sans-serif">);</font><br>
<font face="verdana,sans-serif"><br>Really appreciate any kind of help.<br><br>Thanks in advance<br>Devendra Jadhav<br></font>