mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12: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
|
class Lite
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $options = [
|
protected $options = [
|
||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
'path' => '',
|
'path' => '',
|
||||||
@@ -106,7 +105,7 @@ class Lite
|
|||||||
if (!is_dir($dir))
|
if (!is_dir($dir))
|
||||||
mkdir($dir,0755,true);
|
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) {
|
if ($ret) {
|
||||||
touch($filename, time()+$expire);
|
touch($filename, time()+$expire);
|
||||||
|
|||||||
Reference in New Issue
Block a user