mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
__DEBUG__가 1일때만 file 캐시 사용시 eval
__DEBUG__가 0일경우 기존 include 방식을 사용
This commit is contained in:
parent
fde4ddee92
commit
4313d832fc
1 changed files with 15 additions and 8 deletions
|
|
@ -364,6 +364,8 @@ class TemplateHandler
|
|||
|
||||
ob_start();
|
||||
if(substr($buff, 0, 7) == 'file://')
|
||||
{
|
||||
if(__DEBUG__)
|
||||
{
|
||||
//load cache file from disk
|
||||
$eval_str = FileHandler::readFile(substr($buff, 7));
|
||||
|
|
@ -377,6 +379,11 @@ class TemplateHandler
|
|||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
include(substr($buff, 7));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$eval_str = "?>" . $buff;
|
||||
@eval($eval_str);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue