The Joomla! Forum ™





Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Sep 21, 2005 11:56 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 558
Location: Gogledd Cymru
I've always had problems with caching of mod_mainmenu menus with mambelfish.  Am I the only one?

In case anyone else has had these difficulties I have found a trivial fix that shouldn't affect non-mambelfish users.

in includes/Cache/Lite/Function.php

in the function call() change:

Code:
   $arguments = func_get_args();
   $id = serialize($arguments); // Generate a cache id


to

Code:
   $arguments = func_get_args();
   global  $mosConfig_lang;
   if (isset( $mosConfig_lang)) $arguments[] = array('mosConfigLang'=>$mosConfig_lang);
   $id = serialize($arguments); // Generate a cache id


In essence what the change does is force the cache test to be language dependent.  With all my modules cached using mambelfish has little or almost no impact on performace.

Geraint

p.s. If this helps other people I'll add it as a bug fix in the Joomla tracker.


Top
 Profile  
 
PostPosted: Wed Sep 28, 2005 1:41 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Aug 18, 2005 10:10 am
Posts: 18
Location: Germany
THANKS! :-) This did it for me.

best,

Dirk


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 



Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group