mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
数据库和缓存读写计数调整 增加页面Trace日志驱动(需要设置'response_exit'=>false) Log::record方法支持字符串之外的变量输出
This commit is contained in:
2
library/think/cache/driver/simple.php
vendored
2
library/think/cache/driver/simple.php
vendored
@@ -59,6 +59,7 @@ class Simple
|
||||
*/
|
||||
public function get($name)
|
||||
{
|
||||
\think\Cache::$readTimes++;
|
||||
$filename = $this->filename($name);
|
||||
if (is_file($filename)) {
|
||||
return include $filename;
|
||||
@@ -79,6 +80,7 @@ class Simple
|
||||
*/
|
||||
public function set($name, $value)
|
||||
{
|
||||
\think\Cache::$writeTimes++;
|
||||
$filename = $this->filename($name);
|
||||
// 缓存数据
|
||||
$dir = dirname($filename);
|
||||
|
||||
Reference in New Issue
Block a user