Remove hash detect information

This commit is contained in:
RainLoop Team 2013-11-22 02:07:37 +04:00
parent 0618eb7ca2
commit 8d5b7a0632
2 changed files with 3 additions and 27 deletions

View file

@ -143,18 +143,12 @@ class Service
$aData = $this->startUpData($bAdmin);
$sAppHash = '';
if (\file_exists(APP_DATA_FOLDER_PATH.'HASH'))
{
$sAppHash = md5(@\file_get_contents(APP_DATA_FOLDER_PATH.'HASH'));
}
$bCacheEnabled = $this->oActions->Config()->Get('labs', 'cache_system_data', true);
$sCacheFileName = '';
if ($bCacheEnabled)
{
$sCacheFileName = 'TMPL:'.$aData['Hash'].'/'.$sAppHash;
$sCacheFileName = 'TMPL:'.$aData['Hash'];
$sResult = $this->oActions->Cacher()->Get($sCacheFileName);
}
@ -189,7 +183,6 @@ class Service
$sResult .= '][time:'.substr(\microtime(true) - APP_START, 0, 6);
$sResult .= '][cached:'.($bCached ? 'true' : 'false');
$sResult .= '][session:'.md5(\RainLoop\Utils::GetShortToken());
$sResult .= '][hash:'.$sAppHash;
$sResult .= '] -->';
}