aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/cache.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-14 21:05:11 -0400
committerCash Costello <cash.costello@gmail.com>2012-06-14 21:05:11 -0400
commit4c391e8cbdfb7a51392244d3f3ff0af35b1adb88 (patch)
tree1c5963893e643ee1f47d964da24d8da2abd46c52 /engine/lib/cache.php
parentfd4f7ef53452f8ccd1c53b82e6b2cc0c86788e3f (diff)
downloadelgg-4c391e8cbdfb7a51392244d3f3ff0af35b1adb88.tar.gz
elgg-4c391e8cbdfb7a51392244d3f3ff0af35b1adb88.tar.bz2
rewrote the language caching - now not calling register_translations() if we can load the language data from cache
Diffstat (limited to 'engine/lib/cache.php')
-rw-r--r--engine/lib/cache.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/lib/cache.php b/engine/lib/cache.php
index c117b9ec9..be1c43e14 100644
--- a/engine/lib/cache.php
+++ b/engine/lib/cache.php
@@ -442,6 +442,7 @@ function _elgg_cache_init() {
}
if ($CONFIG->system_cache_enabled && !$CONFIG->i18n_loaded_from_cache) {
+ reload_all_translations();
foreach ($CONFIG->translations as $lang => $map) {
elgg_save_system_cache("$lang.php", serialize($map));
}