MobileJoomla and plugin system cache

gerge51
11 years, 10 months ago
Hi, I look that problem has already found in older version of Mobilejoomla but I'm not sure the problem is solved.
When I turn on the plugin system cache of joomla, the first Template between website and mobilsite who is load, become the unique template. My Joomla is 3.1.1 with global cache conservative ,
mobilejoomla is 1.2.5.1.
Have you this same issue or not ?
dryabov
11 years, 10 months ago
What is the order of MobileJoomla and System-Cache plugins? MobileJoomla should be run before System-Cache.
gerge51
11 years, 10 months ago
mobile Joomla is -99 and plugin cache is 12
dryabov
11 years, 10 months ago
The issue will be fixed in next MJ release.
Alexmobile1
11 years, 9 months ago
Dear Denis. Be so kind as to help me how to remake this part of the code, so I can insert it into the old PDA-mambot 2.1.2 for Joomla 1.0. I want to disabled System-Cache mambot  in mobile mode.

$dispatcher =& JDispatcher::getInstance();
foreach($dispatcher->_observers as $index=>$object)
{
if(is_a($object,'plgSystemCache'))
{
$object->_cache = new _CacheStub();
unset($dispatcher->_observers[$index]);
break;
}
}

I will be very grateful for your help
dryabov
11 years, 9 months ago
As far as I remember, Joomla!1.0 has no System-Cache plugin, so nothing to disable.
Alexmobile1
11 years, 9 months ago
Actually, it exists. You probably forgot. joomlaforum.ru/index.php/topic,35163.0.html
Or mayby I missing something. And one more question: they can work together? Or it  is impossible?
Also for some reason PDA-mambot 2.1.2 for Joomla 1.0. redirect mobile users to the site's homepage, regardless of which URL they originally requested. I guess it affects the next part of the code:

$parsed=parse_url($mosConfig_live_site);
$path= (isset($parsed['path'])) ? $parsed['path'] : '';

Variable $mosConfig_live_site  always be the same, it equals ‘your-domain.com’ , and it is placed in the configuration.php. For this reason variable $path always be empty. Isn't it?
dryabov
11 years, 9 months ago
1. Create 'pda' directory inside website's 'cache' directory.

2. Found line
$GLOBALS['mosConfig_gzip']=$botParams->get( 'gzip' );
in pdabot.php and add
$GLOBALS['mosConfig_cachepath'] .= '/pda';
after it.
actv-tec
11 years, 4 months ago
Hello,
I got a similar issue to one in this topic:

I am trying to disable a system plugin if the mobile version is viewed. 
if(defined('_MJ')

does not return true if added to that plugin. Although "mobilebot" which is "Mobile Joomla!" plugin is at -99 when the one I'm disabling I set to 30. This is very odd.

Thanks

Update: just updated to the latest 1.2.10 version. I checked the code of "mobilebot.php" and it looks like it sets the _MJ constant on line 405 ( define('_MJ', 1); ). So theoretically there should be no problem, but it does not work.

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.