mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
r7451 보완
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7452 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
96b197c3a5
commit
5929e1ad4e
3 changed files with 13 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue