CodeIgniter Forums
Cache and multilingual site - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Cache and multilingual site (/thread-5893.html)



Cache and multilingual site - El Forum - 02-07-2008

[eluser]Référencement Google[/eluser]
Hi,

I get a problem using CI core based cache library.
I have set a multingual system usin the Wiki one that I found here:
http://codeigniter.com/wiki/Language_Selection/

All ok with this until I wanted the add cache to the website. While switching language, it still read to old cached file, then for the user it's look like the language have not changed. It's only once the cache expires that the user can see the content with switched language.

Anyone has experienced this problem, and how to solve it?

Christophe


Cache and multilingual site - El Forum - 04-08-2008

[eluser]sikkle[/eluser]
You totally right.

At the moment so many time at the end i feel the URI way is the better way to handle language.

If no language into uri, just force default one.

see ya arround buddy.


Cache and multilingual site - El Forum - 04-09-2008

[eluser]Référencement Google[/eluser]
See ya arround Sikkle ;-)


Cache and multilingual site - El Forum - 01-13-2009

[eluser]Roland B.[/eluser]
[quote author="Too Pixel" date="1202428336"]Hi,

I get a problem using CI core based cache library.
I have set a multingual system usin the Wiki one that I found here:
http://codeigniter.com/wiki/Language_Selection/

All ok with this until I wanted the add cache to the website. While switching language, it still read to old cached file, then for the user it's look like the language have not changed. It's only once the cache expires that the user can see the content with switched language.

Anyone has experienced this problem, and how to solve it?

Christophe[/quote]

Just use the new Language Selection 2. It is "cache-proof" :-)


Cache and multilingual site - El Forum - 01-13-2009

[eluser]Référencement Google[/eluser]
Hooo thanks that's real nice !