smarty + translations + performance

From: Date: Sat, 13 May 2006 21:04:35 +0000
Subject: smarty + translations + performance
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13425@lists.php.net to get a copy of this message
hiya - we're doing a site that will be in multilanguages, something i'm sure smarty has often been used for. how does smarty work with caching templates, and when does it re-compile templates? i -guess- with smarty there are two levels - the template is compiled and this "compiled template" is what is then used in future to produce final pages, is this correct? so eg if i have: {config_load file=$ui.langStringsFile } where the *config filename itself* is set by my app eg "strings_ja" or "strings_en" - is smarty able to know when the value of that variable has changed, and not compile the templates again? or do i have to setup this type of caching myself manually? eg as long as the user doesnt switch languages, dont cache... are there any tips or good examples for approaches to this? (the "SmartestSmartyMultilanguageSupport" source seems to use the GnU gettext extension which is a bear to get working apparently, so going to skip that one...) thanks! -- _______________________________________________ David "DC" Collier dc@pikkle.com skype: callto://d3ntaku http://www.pikkle.com +81 (0)80 6521 9559 http://charajam.com 【★キャラ♪ジャム★】 人気キャラとJ-POP最新ヒット曲を自分で組み合わせて 待受Flashや着Flashを作っちゃおう! _______________________________________________

« previous php.smarty.general (#13425) next »