数据库和缓存读写计数调整 增加页面Trace日志驱动(需要设置'response_exit'=>false) Log::record方法支持字符串之外的变量输出

This commit is contained in:
thinkphp
2015-12-20 22:22:45 +08:00
parent 40153f4fd8
commit b1624fc2c9
21 changed files with 143 additions and 22 deletions

View File

@@ -98,6 +98,7 @@ class File
if (!is_file($filename)) {
return false;
}
\think\Cache::$readTimes++;
$content = file_get_contents($filename);
if (false !== $content) {
$expire = (int) substr($content, 8, 12);
@@ -128,6 +129,7 @@ class File
*/
public function set($name, $value, $expire = null)
{
\think\Cache::$writeTimes++;
if (is_null($expire)) {
$expire = $this->options['expire'];
}