aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/cache.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/cache.php')
-rw-r--r--engine/lib/cache.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/engine/lib/cache.php b/engine/lib/cache.php
index 633c470eb..c7e0ae31c 100644
--- a/engine/lib/cache.php
+++ b/engine/lib/cache.php
@@ -455,6 +455,12 @@ function _elgg_cache_init() {
elgg_save_system_cache($type, serialize($CONFIG->$var_name));
}
}
+
+ if ($CONFIG->system_cache_enabled && !$CONFIG->i18n_loaded_from_cache) {
+ foreach ($CONFIG->translations as $lang => $map) {
+ elgg_save_system_cache("$lang.php", serialize($map));
+ }
+ }
}
elgg_register_event_handler('ready', 'system', '_elgg_cache_init');