改进文件缓存的并发删除

This commit is contained in:
thinkphp
2018-03-26 11:35:45 +08:00
parent 9daace8812
commit a9546e7c76

View File

@@ -215,7 +215,10 @@ class File extends Driver
public function rm($name)
{
$filename = $this->getCacheKey($name);
return $this->unlink($filename);
try {
return $this->unlink($filename);
} catch (\Exception $e) {
}
}
/**