- $GLOBALS['cache_array']['config'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif ((getConfig('cache_config') == 'Y') && ($GLOBALS['output_mode'] != '1') && ($GLOBALS['output_mode'] != '-1')) {
+ $config = $GLOBALS['cache_instance']->getArrayFromCache();
+
+ // 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 (isHtmlOutputMode()) {