Welcome, Guest
Username Password: Remember me

Caching with multiple languages
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Caching with multiple languages

Caching with multiple languages 5 months, 1 week ago #19752

I don't know if anyone else has reported this, but it appears that caching and multiple languages don't work together. It appears that the first language to access the site creates the cache, then that language is displayed everywhere else on the site until the cache expires.

I assume my options are to create a unique modules for each language -OR- turn off the caching -OR- modify the code to create a cache per language.

Thoughts?

jason
  • lowrykun
  • OFFLINE
  • Visitante
  • Posts: 1
  • Karma: 0

Re: Caching with multiple languages 4 months, 3 weeks ago #19782

Hi,

What component are you using for the miltiple languages?

Do you know php? In cache.php, change
$md5 = md5($html);
//by
$md5 = md5($html.JRequest::getVar('lang', 'en'));


You have to know how to get the lang, that depends of the component that are you using for multiple languages
  • JoniJnm
  • OFFLINE
  • Administrador
  • Posts: 4297
  • Karma: 148
  • Page:
  • 1
Time to create page: 0.27 seconds