mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
Merge branch 'master' of https://github.com/top-think/think
This commit is contained in:
3
library/think/cache/driver/Lite.php
vendored
3
library/think/cache/driver/Lite.php
vendored
@@ -19,7 +19,6 @@ use think\Cache;
|
||||
*/
|
||||
class Lite
|
||||
{
|
||||
|
||||
protected $options = [
|
||||
'prefix' => '',
|
||||
'path' => '',
|
||||
@@ -106,7 +105,7 @@ class Lite
|
||||
if (!is_dir($dir))
|
||||
mkdir($dir,0755,true);
|
||||
*/
|
||||
$ret = file_put_contents($filename, ("<?php\treturn " . var_export($value, true) . ";?>"));
|
||||
$ret = file_put_contents($filename, ("<?php return " . var_export($value, true) . ";"));
|
||||
// 通过设置修改时间实现有效期
|
||||
if ($ret) {
|
||||
touch($filename, time()+$expire);
|
||||
|
||||
Reference in New Issue
Block a user