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