mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修正Template类
This commit is contained in:
@@ -173,7 +173,7 @@ class Template
|
|||||||
if (!empty($this->config['cache_id']) && $this->config['display_cache']) {
|
if (!empty($this->config['cache_id']) && $this->config['display_cache']) {
|
||||||
// 读取渲染缓存
|
// 读取渲染缓存
|
||||||
$cacheContent = Cache::get($this->config['cache_id']);
|
$cacheContent = Cache::get($this->config['cache_id']);
|
||||||
if (false !== $cacheContent) {
|
if (!is_null($cacheContent)) {
|
||||||
echo $cacheContent;
|
echo $cacheContent;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -303,7 +303,7 @@ class Template
|
|||||||
{
|
{
|
||||||
if ($cacheId && $this->config['display_cache']) {
|
if ($cacheId && $this->config['display_cache']) {
|
||||||
// 缓存页面输出
|
// 缓存页面输出
|
||||||
return Cache::get($cacheId) ? true : false;
|
return Cache::has($cacheId);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user