|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
tanphat3413 Smarty n00b
Joined: 08 Oct 2015 Posts: 1
|
Posted: Thu Oct 08, 2015 3:33 am Post subject: Cache and Multilanguage (Codeigniter) |
|
|
I use codeigniter frameworks and smarty to develop multilanguage website.
My problem is when I switch from one language into another language, the smarty still take the old cache, corresponding to the old language.
I tried to config smarty to save the cache files in each folder corresponding to the language, but still does not work, it seems smarty still create cache files with the same id-cache (cache file name) and load cache file with first id find.
So how do smarty created cache files corresponding to each language and right load these files ?
Thank all.
(and sorry for my bad english) |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Oct 08, 2015 11:07 am Post subject: |
|
|
For different languages you'd want different compiled templates. Then your cache would be automatically separated by both keys. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Fri Oct 09, 2015 3:17 am Post subject: |
|
|
Code: | $smarty->compile_id = 'some language id here'; |
|
|
Back to top |
|
|
|
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 vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|