} catch (Exception $e) { // Disabled exception //traceException($e); showWorkTime("exception catched"); } unset($matches); } $cmsController = cmsController::getInstance(); showWorkTime("cmsController init"); $cmsController->analyzePath(); showWorkTime("path analyzed"); // static cache if ($config->get('cache', 'static.enabled') && $cmsController->getCurrentElementId()) { require_once CURRENT_WORKING_DIR . '/libs/cacheControl.php'; $staticCache = new staticCache(); $staticCache->load(); } else { $staticCache = null; } showWorkTime("cacheControl started"); $currentModule = $cmsController->getCurrentModule(); showWorkTime("cmsController getCurMod"); $currentMethod = $cmsController->getCurrentMethod(); $currentTemplater = $cmsController->getCurrentTemplater(); showWorkTime("templater init"); if (getRequest("xmlMode") == 'force') { // flush XML $dom = new DOMDocument('1.0', 'utf-8'); $rootNode = $dom->createElement("result"); $dom->appendChild($rootNode); $rootNode->setAttribute('xmlns:xlink', 'http://www.w3.org/TR/xlink');