Log in

View Full Version : Question about language system


whereisapi
09-05-2007, 11:38 PM
Hi there,

Just a question about the language system and how it works, trying to optimize things here..

I see the phrase table in the database, I also see serialized arrays in the language table. Are languages drawn directly from the database? Or are they magically cached on file and read from there?

Further, is the language fetch done every page hit, or does it get stored into session somehow?

Thanks for any insight you can offer!

nexialys
09-06-2007, 01:24 AM
language fetched per page, as each page can load a different range of phrases (each pages is identified to load specific phrasegroups...)

the logic behind the serialized data is the cache listing of each variable contained in a phrasegroup... each group calls different phrases, and each page call the group their need to fill the need... instead of loading the whole package....