Fix some performance issues

This commit is contained in:
RainLoop Team 2014-06-23 20:14:47 +04:00
parent 5b465f5337
commit 40a0f8b821
5 changed files with 56 additions and 8 deletions

View file

@ -270,6 +270,29 @@ class Actions
return $oResult;
}
/**
* @return void
*/
public function BootStart()
{
if (defined('APP_INSTALLED_START') && defined('APP_INSTALLED_VERSION') &&
APP_INSTALLED_START && !APP_INSTALLED_VERSION)
{
$this->KeenIO('Install');
}
}
/**
* @return void
*/
public function BootEnd()
{
if ($this->MailClient()->IsLoggined())
{
$this->MailClient()->LogoutAndDisconnect();
}
}
/**
* @return string
*/

View file

@ -104,14 +104,10 @@ class Service
return $this;
}
$this->oActions->BootStart();
$this->oActions->ParseQueryAuthString();
if (defined('APP_INSTALLED_START') && defined('APP_INSTALLED_VERSION') &&
APP_INSTALLED_START && !APP_INSTALLED_VERSION)
{
$this->oActions->KeenIO('Install');
}
$bCached = false;
$sResult = '';
@ -219,6 +215,7 @@ class Service
echo $sResult;
unset($sResult);
$this->oActions->BootEnd();
return $this;
}