Cache i18n

macm - July 20, 2007 - 00:54
Project:SiteMenu
Version:5.x-1.0
Component:Code
Category:support request
Priority:normal
Assigned:macm
Status:active
Description

Thanks kbahey, your modules are amazing.

I saw that sitemenu cache the page but if you have i18n installed dont work because always call cache table and cache table didnt save language.

So If you switch language site menu still be in first cache language.

I am learning about cache at this moment. I think in your module need just insert . i18n_get_lang() in some place to be fine.

But you are the master, you know better than I.

Thanks for all again, and congratulations

#1

macm - July 20, 2007 - 18:15

I hope you approve.

line 254,255

$language = i18n_get_lang();
$cache_id = 'sitemenu:' . $vocabulary->vid . '_' . $mode . '_' .$language;

Regards

macm

 
 

Drupal is a registered trademark of Dries Buytaert.