From 4c391e8cbdfb7a51392244d3f3ff0af35b1adb88 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Thu, 14 Jun 2012 21:05:11 -0400 Subject: rewrote the language caching - now not calling register_translations() if we can load the language data from cache --- engine/lib/plugins.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engine/lib/plugins.php') diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php index 39a76db5d..d5cd4fe76 100644 --- a/engine/lib/plugins.php +++ b/engine/lib/plugins.php @@ -311,6 +311,10 @@ function elgg_load_plugins() { $start_flags = $start_flags & ~ELGG_PLUGIN_REGISTER_VIEWS; } + if (elgg_get_config('i18n_loaded_from_cache')) { + $start_flags = $start_flags & ~ELGG_PLUGIN_REGISTER_LANGUAGES; + } + $return = true; $plugins = elgg_get_plugins('active'); if ($plugins) { -- cgit v1.2.3