- // @TODO: Do we really need to cache the config???
-} elseif ((getConfig('cache_config') == "Y") && ($GLOBALS['output_mode'] != "1") && ($GLOBALS['output_mode'] != "-1")) {
+ // Swap cache
+ foreach ($config as $entry => $array) {
+ // All config levels
+ foreach ($array as $key => $value) {
+ $GLOBALS['cache_array']['config'][$key][$entry] = $value;
+ } // END - foreach
+ } // END - foreach
+
+ // Remove dummy array
+ unset($config);
+} elseif (getOutputMode() != 1) {