Thursday, July 25, 2013

My answer to "LOCALE and LANG problems"

This is my answer to a Question on Support site for LampCMS project


No need to remove database. All you need to do is login to your site as administrator, click on settings and then click on "Clear Cache" link

That will remove all cached translation objects from cache. Translation objects are cached to improve performance because you don't want to parse the xml file on every page load to load translation strings. These are parsed once and then created object is stored in C_Cache mongo collection. It's alot faster to get the object from Mongo then re-create it from xml files on every page load.

Anyway, there is a "Clear Cache" link in settings but it is only visible when you logged in with admin account.

You must clear cache after you change anything in your translation files which are basically xml files with the .xlf extension - in /config/translations/ directory

No comments:

Post a Comment