From 8188bab06151cf79522acfb9f97233c9f91584ce Mon Sep 17 00:00:00 2001 From: Xiaobo Wang Date: Tue, 18 Oct 2016 15:18:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=8C=87=E5=AE=9Afilecache.p?= =?UTF-8?q?hp=E6=96=87=E4=BB=B6=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 没有指定filecache.php文件目录 --- corp/util/Cache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/corp/util/Cache.php b/corp/util/Cache.php index ebbf6cb..42882fa 100755 --- a/corp/util/Cache.php +++ b/corp/util/Cache.php @@ -130,7 +130,7 @@ function set($key, $value) } $item['create_time'] = time(); $data["$key"] = $item; - $this->set_file("filecache.php",json_encode($data)); + $this->set_file(DIR_ROOT ."filecache.php",json_encode($data)); } } @@ -172,4 +172,4 @@ function set_file($filename, $content) { fwrite($fp, "" . $content); fclose($fp); } -} \ No newline at end of file +}