Hi,
I used mobile tools for several months with no problem. Now I had to change my drupal configuration to use memcache integration. So I had to add these lines in settings.php:

$conf = array(
  'cache_inc' => '/proc/unbit/www/orizzontescuola.it/sites/all/modules/memcache/memcache.inc',
  'session_inc' => '/proc/unbit/www/orizzontescuola.it/sites/all/modules/memcache/memcache-session.inc',
  'memcache_servers' => array('192.168.0.17:15031' => 'default'),
);

I think this new config overwrite the old one related to mobile tools:

$conf['page_cache_fastpath'] = FALSE;
$conf['cache_inc'] = './sites/all/modules/mobile_tools/mobile_tools_cache.inc';

So, now if I visit my website from mobile, redirect url works fine, but it continue to display "default" theme, instead of mobile version...

How can I fix it?
Thanks

CommentFileSizeAuthor
#8 memcache2.txt18.42 KBfmb

Comments

WorldFallz’s picture

good question-- I just went to re-enable mobile_tools after a recently (unrelated) bug fix was committed, when I noticed there might be clashing cache.inc's in settings.php.

Question to the maintainers-- which should be used? Will using mobile_tools cache.inc disable a site's memcache?

ardnet’s picture

Me too, I was having this problem as well.
Besides mobile_tools, my problem was also with Browscap module.

I used this function browscap_get_browser() in one of my custom module. For some reason is always tells 'BlackBerry' from my iPhone.
Then turns out it was bcoz I was accessing the site before using BlackBerry.
Then I cleared the cache under Performance page, I'm accessing the site using iPhone now, then in my BlackBerry tells 'iPhone'.

And also in the Performance page i see this text:
"The following enabled modules are potentially incompatible with aggressive- and external-mode caching and will not function properly: browscap, mobile_tools."

Any idea how to deal with memcache?

Thanks

Ardi

Docc’s picture

sub

mherchel’s picture

same issue. It seems that Memcache will serve the full page of whatever page is cached.

mherchel’s picture

Component: Miscellaneous » Code
Category: support » bug

I'm at the performance & scalabilty training session at Drupalcon Denver, and ran this by some of the experts who suggested this may be a bug within Mobile Tools where it isn't interacting correctly with the Drupal page cache.

Unfortunately, I'm not well versed enough in PHP to troubleshoot this myself, but I am changing the category to a bug report. I don't think there's any support that can fix this.

Kendall Totten’s picture

I've been digging around myself to see how bad of a problem this is, and I stumbled across this:
http://drupal.org/node/996838

Have you seen this workaround or tried it?

devin carlson’s picture

Status: Active » Closed (cannot reproduce)

Please upgrade to the latest version of Mobile Tools and see if your problems persist.

fmb’s picture

StatusFileSize
new18.42 KB

The only way if you want to keep the same URL for every device would be to write a new cache.inc file, with the cache_rewrite_cid() magic just like in mobile_tools_cache.inc. See the attached PHP file (just change the extension to .inc), which I placed in the memcache module directory (not that elegant, but it's the best I could do...). You can manually set mobile_tools_extra_include in settings.php