mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进文件缓存的并发删除
This commit is contained in:
5
library/think/cache/driver/File.php
vendored
5
library/think/cache/driver/File.php
vendored
@@ -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) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user