Index: branches/unlabeled/unlabeled-1.155.2/core/kernel/application.php =================================================================== diff -u -N -r5631 -r5632 --- branches/unlabeled/unlabeled-1.155.2/core/kernel/application.php (.../application.php) (revision 5631) +++ branches/unlabeled/unlabeled-1.155.2/core/kernel/application.php (.../application.php) (revision 5632) @@ -224,6 +224,11 @@ $admin_on = getArrayValue($_REQUEST, 'admin') || $this->IsAdmin(); define('MOD_REWRITE', $rewrite_on && !$admin_on ? 1 : 0); + if ($this->UseOutputCompression()) { + header('Content-Encoding: gzip'); + safeDefine('DBG_COMPRESS_OUTPUT', 1); + } + $this->HttpQuery =& $this->recallObject('HTTPQuery'); $this->Session =& $this->recallObject('Session'); @@ -233,7 +238,7 @@ $this->LoadCache(); $this->InitConfig(); - + // Module items are recalled during url parsing & PhrasesCache is needed already there, // because it's used in their build events. That's why phrases cache initialization is // called from kHTTPQuery in case when mod_rewrite is used @@ -260,12 +265,7 @@ $this->HandleEvent( new kEvent('visits:OnRegisterVisit') ); $this->ValidateLogin(); - - if ($this->UseOutputCompression()) { - header('Content-Encoding: gzip'); - safeDefine('DBG_COMPRESS_OUTPUT', 1); - } - + if($this->isDebugMode()) { $this->Debugger->profileFinish('kernel4_startup'); }