In-Portal has built-in support for:
- entering content on multiple languages
- applying different themes (skins) to website
Confirmation of languages/themes can be done in "Configuration > Website > Regional" and "Configuration > Website > Themes" sections. Later in templates these tags are used to access data from current language/theme:
Because of these tags load current language/theme object from database a decision was made to cache their results. Unfortunately cache was used during editing of any language/theme in Admin Console, which prevents administrator from seeing what was changed (e.g. date format changed on a language) until it's saves all the changes.
In the "LanguagesItem::Load" and "ThemeItem::Load" methods, when "$cachable" parameter is thrusy, but we're in temp mode, then set it "false".