Cache类的get方法增加默认值参数

This commit is contained in:
thinkphp
2016-07-24 21:56:00 +08:00
parent bab4398552
commit 760b1d971d
11 changed files with 42 additions and 38 deletions

View File

@@ -173,7 +173,7 @@ class Template
if (!empty($this->config['cache_id']) && $this->config['display_cache']) {
// 读取渲染缓存
$cacheContent = Cache::get($this->config['cache_id']);
if (!is_null($cacheContent)) {
if (false !== $cacheContent) {
echo $cacheContent;
return;
}