r7451 보완

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7452 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2010-05-12 09:43:33 +00:00
parent 96b197c3a5
commit 5929e1ad4e
3 changed files with 13 additions and 7 deletions

View file

@ -57,10 +57,11 @@
$oCacheHandler = &CacheHandler::getInstance('template');
if($oCacheHandler->isSupport()){
$buff = $oCacheHandler->get('template:'.$tpl_file, filemtime(FileHandler::getRealPath($tpl_file)));
$cache_key = 'template:'.$_SERVER['HTTP_HOST'] . $tpl_file;
$buff = $oCacheHandler->get($cache_key, filemtime(FileHandler::getRealPath($tpl_file)));
if(!$buff){
$buff = $this->_compileTplFile($tpl_file);
$oCacheHandler->put('template:'.$tpl_file, $buff);
$oCacheHandler->put($cache_key, $buff);
}
$output = $this->_fetch('', $buff, $tpl_path);