Welcome, Guest
Username Password: Remember me

MobileJoomla and plugin system cache
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: MobileJoomla and plugin system cache

MobileJoomla and plugin system cache 11 years, 4 months ago #15157

  • gerge51
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
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 ?

Re: MobileJoomla and plugin system cache 11 years, 4 months ago #15158

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
What is the order of MobileJoomla and System-Cache plugins? MobileJoomla should be run before System-Cache.

Re: MobileJoomla and plugin system cache 11 years, 4 months ago #15159

  • gerge51
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
mobile Joomla is -99 and plugin cache is 12

Re: MobileJoomla and plugin system cache 11 years, 4 months ago #15165

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
The issue will be fixed in next MJ release.

Re: MobileJoomla and plugin system cache 11 years, 3 months ago #15547

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
Last Edit: 11 years, 3 months ago by Alexmobile1.

Re: MobileJoomla and plugin system cache 11 years, 3 months ago #15548

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
As far as I remember, Joomla!1.0 has no System-Cache plugin, so nothing to disable.

Re: MobileJoomla and plugin system cache 11 years, 3 months ago #15556

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?

Re: MobileJoomla and plugin system cache 11 years, 3 months ago #15560

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
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.
The following user(s) said Thank You: Alexmobile1

Re: MobileJoomla and plugin system cache 10 years, 11 months ago #16676

  • actv-tec
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
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.
Last Edit: 10 years, 11 months ago by actv-tec.
  • Page:
  • 1
Time to create page: 0.13 seconds

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.