Fixed Apc Cache Handler

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7455 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2010-05-13 05:48:20 +00:00
parent 3d738e713a
commit c7e0993d29
3 changed files with 17 additions and 12 deletions

View file

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