aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/cache.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2012-01-25 19:19:27 -0500
committercash <cash.costello@gmail.com>2012-01-25 19:19:27 -0500
commitdd5690916b8acb952669914c0e7dfc3ebf0842c2 (patch)
tree74714627c607e1710fa7e611250483f3b0c06df9 /engine/lib/cache.php
parent6a2d3d7c2d22f57f28472d9d023788d20d41f005 (diff)
downloadelgg-dd5690916b8acb952669914c0e7dfc3ebf0842c2.tar.gz
elgg-dd5690916b8acb952669914c0e7dfc3ebf0842c2.tar.bz2
caching language data
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');