在设置缓存时,如果设置缓存标签,
Cache::tag('tag')->set('name1','value1');
有时会有报错,大部分时候正常
Argument 1 passed to think\cache\Driver::unserialize() must be of the type string, bool given, called in vendor\topthink\fr
调试后发现在getRaw这个方法里,file_get_contents有时返回的结果是空的
$content = @file_get_contents($filename);
所以才偶尔有这个报错。 麻烦看看
最佳答案