Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Cache and Multilanguage (Codeigniter)

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Frameworks
View previous topic :: View next topic  
Author Message
tanphat3413
Smarty n00b


Joined: 08 Oct 2015
Posts: 1

PostPosted: Thu Oct 08, 2015 3:33 am    Post subject: Cache and Multilanguage (Codeigniter) Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Thu Oct 08, 2015 11:07 am    Post subject: Reply with quote

For different languages you'd want different compiled templates. Then your cache would be automatically separated by both keys.
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Fri Oct 09, 2015 3:17 am    Post subject: Reply with quote

Code:
$smarty->compile_id = 'some language id here';
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Frameworks All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP